PHP Manual Function Reference Non-Text MIME Output PDF PDF Functions PDF_get_errnum PDF_get_errmsg PDF_get_font PDF_get_errnum (PECL pdflib >= 2.0.0)PDF_get_errnum — Get error number Description int PDF_get_errnum ( resource $pdfdoc ) Gets the number of the last thrown exception or the reason for a failed function call.