LockSaveVersion
PDF compatibility, Document properties
Description
Locks the PDF header and catalog version used when the selected document is saved.
Use this when a workflow must keep the serialized file at a specific PDF version and fail instead of silently raising the version during save.
Syntax
Delphi
Function LockSaveVersion(Const Version: WideString): Integer;Parameters
| Version | PDF version string. Accepted values are 1.0 through 1.7. |
|---|
Returns
Returns 1 for an accepted version and 0 for any other value.
Remarks
The save path still validates the final document. If content requires a higher version than the locked value, the save operation fails rather than writing an invalid header/catalog combination.