If you are using the PDFLib Lite version, this function will not work. You have to purchase the full version of PDFLib
PHP - Manual: PDF_open_pdi_document
2024-11-15
(PECL pdflib >= 2.1.0)
PDF_open_pdi_document — Prepare a pdi document
$p
, string $filename
, string $optlist
) : intOpen a disk-based or virtual PDF document and prepare it for later use.
官方地址:https://www.php.net/manual/en/function.pdf-open-pdi-document.php