Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » PDF Document Margin Setup
Re: PDF Document Margin Setup [message #1739 is a reply to message #1738] Mon, 20 October 2008 10:17 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2371
Registered: April 2006
Location: Surrey, UK
Senior Member
The TCPDF library functions that I use to create PDF documents use default margin values which depend of the page format (A4, A5, Letter, etc). As far as I am aware it should be possible to amend these defaults by including the following code somewhere in your _cm_pre_output() method:
$this->pdf->lMargin = x;  // left margin
$this->pdf->tMargin = x;  // top margin
$this->pdf->rMargin = x;  // right margin
$this->pdf->bMargin = x;  // bottom margin

Try it and see. The only alternative would be to manually adjust the x and y coordinates as discussed in http://www.tonymarston.net/php-mysql/output-to-pdf.html#body .contents.detail3.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Print labels in PDF
Next Topic: Export selected fields from list view to CSV
Goto Forum:
  


Current Time: Mon Dec 02 14:13:24 EST 2024

Total time taken to generate the page: 0.01132 seconds