tcpdf configuration |
(07-07-2022, 07:17 AM)Erwin Wrote: Hi, I do not use the library directly, but will try to help you. When you start using the tcpdf library, you initiate a new tcpdf object: PHP Code: $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); and then you can manipulate it's properties through the TCPDF class methods. The property you refer to is defined in the config file as a constant: PHP Code: define ('PDF_MARGIN_TOP', 27); But as described in the documentation, you can change it through the TCPDF method SetMargins: PHP Code: $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); Instead of using the defaults (as in the example line above) you can use your own numbers - all or part of them: PHP Code: $pdf->SetMargins(PDF_MARGIN_LEFT, 33, PDF_MARGIN_RIGHT);
==
Donatas G. |
Messages In This Thread |
tcpdf configuration - by Erwin - 07-07-2022, 07:17 AM
RE: tcpdf configuration - by dgvirtual - 07-11-2022, 08:42 AM
RE: tcpdf configuration - by Erwin - 07-11-2022, 12:07 PM
RE: tcpdf configuration - by dgvirtual - 07-28-2022, 12:59 PM
RE: tcpdf configuration - by Erwin - 08-04-2022, 03:14 PM
RE: tcpdf configuration - by getsamplecode - 11-25-2024, 08:08 PM
|