pdfLoadFileW
Load a PDF file from disk with a Unicode file name.
// Windows only
int pdfLoadFileW(PDFHandle *pdfPtr, const wchar_t *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.
pdfLoadFileW
is identical to pdfLoadFile
, except that
the file name is Unicode (wchar_t*
instead
of char*
).
The pdfLoadFile
function returns pdfOk
if
successful, otherwise an error code.
This function is only available on Windows.
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, L"c:/test/file.pdf");
if (err != pdfOk) {
/* handle the error */
...
}