php-tcpdfHow do I use the setxy function in PHP TCPDF?
The setXY()
function in PHP TCPDF is used to set the current abscissa and ordinate positions. The function takes two parameters; the first is the abscissa position, and the second is the ordinate position. The positions are specified in user units (which is typically millimeters).
Example code
$pdf->setXY(10, 20);
Code explanation
$pdf
- an instance of the TCPDF classsetXY()
- the function that sets the current abscissa and ordinate positions10
- the abscissa position20
- the ordinate position
Helpful links
More of Php Tcpdf
- How do I install TCPDF using Yum on a PHP server?
- How can I generate a QR code using PHP and TCPDF?
- How can I generate a PDF from XML data using PHP and TCPDF?
- How do I install TCPDF with Composer in a PHP project?
- How do I use the PHP TCPDF WriteHTMLCell function?
- How do I generate a PDF file using TCPDF, PHP and MySQL?
- How do I add a watermark to PDFs using PHP and TCPDF?
- How do I set the margins using PHP TCPDF?
- How can I install and use PHP-TCPDF on a Linux system?
- How do I set the page orientation when using PHP TCPDF?
See more codes...