xpdfSpliceOpenInputMemWithPassword

Open an input PDF file from a memory buffer, with a password.
XpdfSpliceInputHandle xpdfSpliceOpenInputMemWithPassword(const char *buffer, unsigned int bufferLength, const char *password)
This function opens an input PDF file from bufferLength bytes at buffer, applying the specified password, and constructs a handle.

The xpdfSpliceOpenInputMemWithPassword function returns an XpdfSpliceInputHandle if successful, and otherwise returns NULL.

IMPORTANT: The PDF file in memory must not be deleted or modified until after xpdfSpliceCloseInput is called.

C:
XpdfSpliceInputHandle in; char *buffer; unsigned int bufferLength; /* ... read the PDF file into buffer; set bufferLength to size of buffer ... */ in = xpdfSpliceOpenInputMemWithPassword(buffer, bufferLength, "secret"); if (!in) { /* handle the error */ }
xpdfSpliceOpenInput
xpdfSpliceOpenInputW
xpdfSpliceOpenInputWithPassword
xpdfSpliceOpenInputWithPasswordW
xpdfSpliceOpenInputMem
xpdfSpliceCloseInput