pdfium library




fBitmapCreate BitmapCreate
read / write
fBitmapFillRect BitmapFillRect
read / write
fBitmapGetBuffer BitmapGetBuffer
read / write
fCloseDocument CloseDocument
read / write
fDestroyLibrary DestroyLibrary
read / write
fGetLastError GetLastError
read / write
fGetPageCount GetPageCount
read / write
fGetPageHeight GetPageHeight
read / write
fGetPageWidth GetPageWidth
read / write
fInitLibraryWithConfig InitLibraryWithConfig
read / write
fLoadDocument FPDF_LoadDocument
read / write
fLoadPage LoadPage
read / write
fRenderPageBitmap RenderPageBitmap
read / write


initLibrary({Pointer<FPDF_LIBRARY_CONFIG> config}) → void
loadDocument(String filePath, {String password}) Pointer<FPDF_DOCUMENT>
loadDylib(String path) → void
pointsToPixels(num points, num ppi) num


BitmapCreate = Pointer<FPDF_BITMAP> Function(int width, int height, int alpha)
BitmapFillRect = void Function(Pointer<FPDF_BITMAP> bitmap, int left, int top, int width, int height, int color)
BitmapGetBuffer = Pointer<Uint32> Function(Pointer<FPDF_BITMAP> bitmap)
CloseDocument = void Function(Pointer<FPDF_DOCUMENT> document)
DestroyLibrary = void Function()
FPDF_CloseDocument = Void Function(Pointer<FPDF_DOCUMENT> document)
Function: FPDF_CloseDocument Close a loaded PDF document. Parameters: document - Handle to the loaded document. Return value: None.
FPDF_DestroyLibrary = Void Function()
FPDF_GetLastError = Uint64 Function()
Function: FPDF_GetLastError Get last error code when a function fails. Parameters: None. Return value: A 32-bit integer indicating error code as defined above. Comments: If the previous SDK call succeeded, the return value of this function is not defined.
FPDF_GetPageCount = Int32 Function(Pointer<FPDF_DOCUMENT> document)
Function: FPDF_GetPageCount Get total number of pages in the document. Parameters: document - Handle to document. Returned by FPDF_LoadDocument. Return value: Total number of pages in the document.
FPDF_GetPageHeight = Double Function(Pointer<FPDF_PAGE> page)
FPDF_GetPageWidth = Double Function(Pointer<FPDF_PAGE> page)
FPDF_InitLibraryWithConfig = Void Function(Pointer<FPDF_LIBRARY_CONFIG> config)
FPDF_LoadDocument = Pointer<FPDF_DOCUMENT> Function(Pointer<Utf8> filePath, Pointer<Utf8> password)
PdfiumException getLastError() { switch (nGetLastError()) { case FPDF_ERR_SUCCESS: fprintf(stderr, "Success"); break; case FPDF_ERR_UNKNOWN: fprintf(stderr, "Unknown error"); break; case FPDF_ERR_FILE: fprintf(stderr, "File not found or could not be opened"); break; case FPDF_ERR_FORMAT: fprintf(stderr, "File not in PDF format or corrupted"); break; case FPDF_ERR_PASSWORD: [...]
FPDF_LoadPage = Pointer<FPDF_PAGE> Function(Pointer<FPDF_DOCUMENT> document, Int32 pageIndex)
Function: FPDF_LoadPage Load a page inside the document. Parameters: document - Handle to document. Returned by FPDF_LoadDocument page_index - Index number of the page. 0 for the first page. Return value: A handle to the loaded page, or NULL if page load fails. Comments: The loaded page can be rendered to devices using FPDF_RenderPage. The loaded page can be closed using FPDF_ClosePage.
FPDF_RenderPageBitmap = Void Function(Pointer<FPDF_BITMAP> bitmap, Pointer<FPDF_PAGE> page, Int32 start_x, Int32 start_y, Int32 size_x, Int32 size_y, Int32 rotate, Int32 flags)
FPDFBitmap_Create = Pointer<FPDF_BITMAP> Function(Int32 width, Int32 height, Int32 alpha)
FPDFBitmap_FillRect = Void Function(Pointer<FPDF_BITMAP> bitmap, Int32 left, Int32 top, Int32 width, Int32 height, Uint32 color)
FPDFBitmap_GetBuffer = Pointer<Uint32> Function(Pointer<FPDF_BITMAP> bitmap)
GetLastError = int Function()
GetPageCount = int Function(Pointer<FPDF_DOCUMENT> document)
GetPageHeight = double Function(Pointer<FPDF_PAGE> page)
GetPageWidth = double Function(Pointer<FPDF_PAGE> page)
InitLibraryWithConfig = void Function(Pointer<FPDF_LIBRARY_CONFIG> config)
LoadPage = Pointer<FPDF_PAGE> Function(Pointer<FPDF_DOCUMENT> document, int pageIndex)
RenderPageBitmap = void Function(Pointer<FPDF_BITMAP> bitmap, Pointer<FPDF_PAGE> page, int start_x, int start_y, int size_x, int size_y, int rotate, int flags)