PdfDocument.FileVersion Property
Gets the PDF file version.
Namespace: DevExpress.Docs.Pdf
Assembly: DevExpress.Docs.Pdf.v26.1.dll
Declaration
Property Value
| Type | Description |
|---|---|
| FileVersion | An enumeration value that specifies the PDF file version. |
Available values:
| Name |
|---|
| Pdf_1_0 |
| Pdf_1_1 |
| Pdf_1_2 |
| Pdf_1_3 |
| Pdf_1_4 |
| Pdf_1_5 |
| Pdf_1_6 |
| Pdf_1_7 |
| Pdf_2_0 |
| 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.