Replies: 5   Views: 1735
How to add modifypagelayout ( string $papertype [ array $options ) for customizing document format
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 abhay.pai  · 14-04-2017 - 10:40

I had used below code, but in resulted doc i am not getting the margins 

     $docx->modifyPageLayout('custom', array('marginTop' => '30', 'marginRight' => '30', 'marginBottom' => '30', 'marginLeft' =>  '30',));

can anyone please let me know where am i going wrong ?