Error codes are returned by various functions:
pdfOk: No error.
pdfErrOpenFile: The PDF file couldn't be opened.
This typically means that the file name was misspelled, or that the
file permissions prevented it from being opened.
pdfErrBadCatalog: The PDF page catalog couldn't be
read. This error can be treated the same way as
pdfErrDamaged: The PDF file was damaged and couldn't
pdfErrEncrypted: The PDF file was encrypted and the
password was incorrect or not supplied.
pdfErrHighlightFile: The highlight file was
nonexistent or invalid.
pdfErrBadPrinter: The specified printer was invalid.
This typically means that the printer name was incorrect, or that
permissions prevented printing to that printer.
pdfErrPrinting: Error during printing.
pdfErrPermission: Operation not allowed by the PDF
pdfErrBadPageNum: Invalid page number requested.
pdfErrFileIO: File I/O error.
pdfErrBadArg: An invalid argument was passed to the