xpdfSpliceOpenInputMem

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

The xpdfSpliceOpenInputMem 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 = xpdfSpliceOpenInputMem(buffer, bufferLength); if (!in) { /* handle the error */ }
xpdfSpliceOpenInput
xpdfSpliceOpenInputW
xpdfSpliceOpenInputWithPassword
xpdfSpliceOpenInputWithPasswordW
xpdfSpliceOpenInputMemWithPassword
xpdfSpliceCloseInput