Forum


Replies: 4   Views: 4137
Addsection 'oddpage' does not create a blank page when needed
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 Greg  · 04-02-2015 - 15:05

Hi There, Thank you for your feedback on this topic. I tried what you suggested but we did not obtain the desired result. $docx->addBreak(array('type' => 'page')); The line above will add a page break to the document. It does this without regard to if the break will take the document to an Odd or Even page. This is the purpose of a section break with Even or Odd specified as you can see here: https://support.office.microsoft.com/en-us/article/Insert-a-section-break-eef20fd8-e38c-4ba6-a027-e503bdf8375c?CorrelationId=d3db5959-5b95-4479-b865-878c6de3fe3c&ui=en-US&rs=en-US&ad=US Do you have the ability to recreate the problem? Greg