Forum


Replies: 1   Views: 763
Create table in a specific position of an existing docx file
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 danilo  · 22-09-2021 - 15:31

Hi,

is there a way to insert a new table in a specific page of an existing Docx file (so using CreateDocxFromTemplate method)?

Thanks

Posted by admin  · 22-09-2021 - 16:57

Hello,

You can use DOCXPath to insert new contents (and also replace, remove, move and other tasks) at specific positions of a document: after or before some content or tag. For example, at the beginning of a section, after some specific existing content... We recommend you to check the documentation available on https://www.phpdocx.com/documentation/introduction/docxpath and the included samples.

Regards.