ylli Posted May 29, 2015 Share Posted May 29, 2015 Hello, I am generating pdf using this code: $pdf = new PDF($this->boxes, PDF::TEMPLATE_AIRWAY,Context::getContext()->smarty); $pdf->render(true); I want to know if is there a way to change the margins only for this generated pdf not for all the pdfs (that i can change in PDFGenerator.php). The object $pdf must have some method to edit or set margins only for this pdf that is generated. Anyone can help ? Thanks Link to comment Share on other sites More sharing options...
tuk66 Posted June 2, 2015 Share Posted June 2, 2015 Try $pdf->pdf_renderer->setMargins(10, 40, 10); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now