FPDFAvail_GetDocument function
- @Native<FPDF_DOCUMENT Function(FPDF_AVAIL avail, FPDF_BYTESTRING password)>(FPDF_AVAIL, FPDF_BYTESTRING)>()
- FPDF_AVAIL avail,
- FPDF_BYTESTRING password
Get document from the availability provider.
avail - handle to document availability provider. password - password for decrypting the PDF file. Optional.
Returns a handle to the document.
When FPDFAvail_IsDocAvail() returns TRUE, call FPDFAvail_GetDocument() to retrieve the document handle. See the comments for FPDF_LoadDocument() regarding the encoding for |password|.
Implementation
@ffi.Native<FPDF_DOCUMENT Function(FPDF_AVAIL, FPDF_BYTESTRING)>()
external FPDF_DOCUMENT FPDFAvail_GetDocument(
FPDF_AVAIL avail,
FPDF_BYTESTRING password,
);