Forum


Replies: 2   Views: 3707
Insert pagebreak into existing docx
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 jorgelj  · 03-03-2014 - 09:31

Hello,



You can use the addBreak method to add line, page or column breaks. Please check this example:



http://www.phpdocx.com/api-documentation/word-content/insert-line-column-page-break-Word-document-with-PHP



To do a pagebreak in a template you need to use the page_break_before property with replaceTemplateVariableByHTML.



About parsing a document, you get the full content using the read readDOCX method. But you can your own template in the constructor.



Regards.