Click or drag to resize

PdfiumFPDF_GetFileVersion Method

Get the file Version of the specific PDF document.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static bool FPDF_GetFileVersion(
	IntPtr doc,
	out int fileVersion
)

Parameters

doc  IntPtr
Handle to document. Returned by FPDF_LoadDocument(String, String), FPDF_LoadMemDocument(Byte, Int32, String) or FPDF_LoadCustomDocument(FPDF_FILEACCESS, String)
fileVersion  Int32
The PDF file Version. File Version: 14 for 1.4, 15 for 1.5, ...

Return Value

Boolean
TRUE if this call succeed, If failed, FALSE is returned.
Remarks
If the document is created by function FPDF_CreateNewDocument, then this function would always fail.
See Also