pdfLoadFile
Load a PDF file from disk.
int pdfLoadFile(PDFHandle *pdfPtr, const char *pdfFileName)
This function opens a PDF file,
pdfFileName
, from disk,
and constructs a PDF handle as *pdfPtr
. This function
must be called before any of the functions that access a PDF file.
The pdfLoadFile
function returns pdfOk
if
successful, otherwise an error code.
IMPORTANT: The PDF file on disk must not be deleted or modified
until after pdfFree
is called.
C:
PDFHandle pdf;
int err;
err = pdfLoadFile(&pdf, "c:/test/file.pdf");
if (err != pdfOk) {
/* handle the error */
...
}