M_PDFiumSharp_PDFium_FPDF_GetFileVersion - ArgusMagnus/PDFiumSharp GitHub Wiki

PDFium.FPDF_GetFileVersion Method

Get the file version of the given PDF document.

Namespace: PDFiumSharp
Assembly: PDFiumSharp (in PDFiumSharp.dll) Version: 1.0.0

Syntax

C#

public static bool FPDF_GetFileVersion(
	FPDF_DOCUMENT doc,
	out int fileVersion
)

Parameters

 

doc
Type: PDFiumSharp.Types.FPDF_DOCUMENT
Handle to a document.
fileVersion
Type: System.Int32
The PDF file version. File version: 14 for 1.4, 15 for 1.5, ...

Return Value

Type: Boolean
True if succeeds, false otherwise.

Remarks

If the document was created by FPDF_CreateNewDocument(), then this function will always fail.

See Also

Reference

PDFium Class
PDFiumSharp Namespace
PdfDocument.FileVersion

⚠️ **GitHub.com Fallback** ⚠️