If you are using the PDFLib Lite version, this function will not work. You have to purchase the full version of PDFLib
(PECL pdflib >= 2.1.0)
PDF_open_pdi_document — Preparar un documento pdi
$p
, string $filename
, string $optlist
) : intAbre un documento PDF virtual o basado en disco y lo prepara para su uso posterior.