Deze API-entry behoudt identifiers, signatures, codeblokken en PDF-termen in hun oorspronkelijke vorm.
Component: TPdf · Unit: PDFium
Read-only flag — the PDF specification version of the open document (e.g. pv14, pv17, pv20).
Syntax
property PdfVersion: TPdfVersion;
Description
Returns the PDF specification version of the open document (e.g. pv14, pv17, pv20).
PDF version is recorded as a comment in the file header and (optionally) overridden by the /Version entry in the catalog.
Read-only at the TPdf surface; to write a different version use the TSaveOption set of SaveToFile.
Remarks
- Treat the value as immutable for the lifetime of the open document — reopening the file or changing pages may yield a different result.
- Surface this value in your UI to drive feature toggles (for example, disable accessibility export when
IsTagged is False).
- All scalar boolean / type properties on TPdf are inexpensive O(1) reads.
Example
if Pdf1.Active and Pdf1.PdfVersion then
Memo1.Lines.Add('PdfVersion = True')
else
Memo1.Lines.Add('PdfVersion = False');
See Also