mrpix - 2017-05-15

Hi, I'd like to create 2 pages that have different margins. I had a look to the section example but I didn't find the way to do this. I want the first page without margin (to import a full page image) and the second page with margins.
If I create 2 setMargins parameters the last one is kept even on the first page. Thx!

        $sect1 = $rtf->addSection();
        $rtf->setMargins(0,0,0,0); 
        [...]
        $sect2 = $rtf->addSection();
        $rtf->setMargins(2,1.5,2,2); 
        [...]

  or

        $sect1 = $rtf->addSection();
        $sect1->setMargins(0,0,0,0); 
        [...]
        $sect2 = $rtf->addSection();
        $sect2->setMargins(2,1.5,2,2); 
        [...]
 

Last edit: mrpix 2017-05-15