You need to call pdf_set_leading() before pdf_continue_text() every time for proper work.
PHP - Manual: PDF_set_leading
2024-11-15
(PHP 4, PECL pdflib >= 1.0.0)
PDF_set_leading — Set distance between text lines [deprecated]
This function is deprecated since PDFlib version 3, use
PDF_set_value() with the parameter
leading
instead.
You need to call pdf_set_leading() before pdf_continue_text() every time for proper work.
官方地址:https://www.php.net/manual/en/function.pdf-set-leading.php