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 do I use the setfont function in PHP TCPDF?
- How do I generate a PDF file using TCPDF, PHP and MySQL?
- How do I use the PHP TCPDF WriteHTMLCell function?
- How do I add a watermark to PDFs using PHP and TCPDF?
- How can I generate a QR code using PHP and TCPDF?
- How can I use PHP and TCPDF to read a PDF?
- How can I generate a PDF from data stored in a MySQL database using TCPDF and PHP?
- How can I use TCPDF's writeHTML() function in PHP?
See more codes...