(PECL pdflib >= 2.0.0)
PDF_get_apiname — Get name of unsuccessfull API function
$pdfdoc
Gets the name of the API function which threw the last exception or failed.