Click or drag to resize

PdfiumFPDFHOLDER_GetRefsToObjects Method

Get an array containing pdf objects which are referenced by other objects from the document catalog.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static IntPtr FPDFHOLDER_GetRefsToObjects(
	IntPtr doc,
	out int count,
	bool parsedOnly = false,
	IntPtr root = 0
)

Parameters

doc  IntPtr
Handle to a PDF document.
count  Int32
The number of elements actually contained in the array.
parsedOnly  Boolean  (Optional)
Flag indicating that only previously parsed objects should be examined.
root  IntPtr  (Optional)
The root object from which to start parsing the document.

Return Value

IntPtr
Handle to an array, or IntPtr.Zero if nothing was found. To get extended error information, call FPDF_GetLastError.
Remarks

This method recursively scans the document catalog, in order to build the array.

This method cannot accept newly created documents. If you pass such document FPDFHOLDER_GetRefsToObjects would fail and the FPDF_GetLastError function would return REQUIRED_DATA_IS_ABSENT (536871427). To get the handle to the document, that can be passed to the FromPdfDocument method, you must save the document to a temporary file or an array of bytes, and then open it with the FPDF_LoadDocument(String, String)".

See Also