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.
I have some info that I want to put in a document.
Some info I want to be structured in 3 columns and some info should be in 1 column.
How do I change the page layout in the document?
You can use modifyPageLayout method to change page layout, paper type, number of columns, margins and other.
so in pseudo code
modifypagelayout (A4, normal, no margins)
modifypagelayout (A4, landscape, margins)
The modifypagelayout should come after the added text? And is valid until I change the layout again?
And I can change the pagelayout ad many times I want?
I have gotten some errors when tampering with these settings...
Something goes wrong sometimes, sometimes I get some fatal errors and the document won't open:(
Please check easy/ModifyPageLayout.inc, intermediate/HeaderAndFooter.php and intermediate/EmbedExternalHTML.php examples
If you find issues paste your code to test it.