Forum


Replies: 4   Views: 2895
Can i remove all content types using deletetemplateblock in basic version or just simple text?
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 14-12-2016 - 10:56

Hello,

The method deleteTemplateBlock removes all contents wrapped by the block placeholders: images, paragraphs, tables, charts, shapes...

If you need a more powerful tool, we recommend you using DOCXPath (only available in Advanced and Premium licenses):

http://www.phpdocx.com/documentation/introduction/docxpath

Regards.