PdfDocument.FileVersion Property
Gets the PDF file version.
Namespace: DevExpress.Docs.Pdf
Assembly: DevExpress.Docs.Pdf.v26.1.dll
NuGet Package: DevExpress.Docs.Pdf
Declaration
Property Value
| Type | Description |
|---|---|
| FileVersion | An enumeration value that specifies the PDF file version. |
Available values:
| Name | Description |
|---|---|
| Pdf_1_0 | PDF version 1.0. |
| Pdf_1_1 | PDF version 1.1. |
| Pdf_1_2 | PDF version 1.2. |
| Pdf_1_3 | PDF version 1.3. |
| Pdf_1_4 | PDF version 1.4. |
| Pdf_1_5 | PDF version 1.5. |
| Pdf_1_6 | PDF version 1.6. |
| Pdf_1_7 | PDF version 1.7 (ISO 32000-1). |
| Pdf_2_0 | PDF version 2.0 (ISO 32000-2). |
| Unknown | The PDF version is unknown. |
Remarks
Every PDF file contains a version identifier in its header (for example, %PDF-1.7). The document catalog dictionary can also include a /Version entry. The effective PDF version is the maximum of the header version and the catalog /Version entry. If the catalog entry is absent or lower than the header version, the header version applies.
A PDF writer can raise the document version through an incremental update. Since the file header cannot change during an incremental save, the catalog /Version entry allows writers to declare a newer version (for example, from 1.4 to 1.7) without rewriting the file.