Click or drag to resize

PdfiumFPDFAvail_IsPageAvail Method

Check whether a page is ready for loading, if not, get download hints.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static bool FPDFAvail_IsPageAvail(
	IntPtr avail,
	int page_index,
	FX_DOWNLOADHINTS hints
)

Parameters

avail  IntPtr
Handle to document availability provider returned by FPDFAvail_Create(FX_FILEAVAIL, FPDF_FILEACCESS)
page_index  Int32
Index number of the page. 0 for the first page.
hints  FX_DOWNLOADHINTS
Pointer to a download hints interface, receiving generated hints

Return Value

Boolean
True for page is fully available, False for page not yet available.
Remarks
This function call be called only after FPDFAvail_GetDocument(IntPtr, String) if called. The application should call this function whenever new data arrived, and process all the generated download hints if any, until the function returns non-zero value. Then the application can perform page loading.
See Also