pdfLoadFile
Load a PDF file from disk.
int pdfLoadFile(PDFViewerHandle viewer, char *pdfFileName)
This function opens a PDF file,
pdfFileName
, from disk,
and displays its first page.
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 pdfCloseFile
is called.
C:
if (pdfLoadFile(viewer, "c:\\test\\file.pdf") != pdfOk) {
/* error ... */
}