Create a PDF viewer.
int pdfCreateViewer(PDFViewerHandle *viewerPtr, HWND wnd)
This function creates a PDF viewer and attaches it to a window.

The window (wnd) must have been previously created with the Windows CreateWindow function.

Returns pdfOk if successful; otherwise returns an error code.

HWND viewerWnd; PDFViewerHandle viewer; /* create a window */ viewerWnd = CreateWindow("static", ...); /* create an XpdfViewer object, attached to the window */ if (pdfCreateViewer(&viewer, viewerWnd) != pdfOk) { /* error ... */ }