Forum


Replies: 9   Views: 3205
Remove 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  · 29-07-2015 - 12:09

Hello, Sorry but there's no example available for the trial version to do what you need. Using the searchAndReplace method available in the Corporate and Enterprise licenses along with the deleteTemplateBlock method you could: 1. Add a placeholder at the beginning of the document. 2. Replace the specific word by a new placeholder using searchAndReplace. 3. The new placeholder allows phpdocx to remove all text and content from the first placeholder to the second plaholder using the deleteTemplateBlock method. Regards.