public abstract class VersionController extends Object
| Modifier and Type | Method and Description |
|---|---|
static VersionController |
getDynamicVersionController(Version initialVersion,
PDFDocument doc)
Returns a controller that allows subsequent changes to the document's version.
|
static VersionController |
getFixedVersionController(Version version)
Returns a controller that disallows subsequent change to the document's version.
|
Version |
getPDFVersion()
Returns the PDF version of the document.
|
abstract void |
setPDFVersion(Version version)
Sets the PDF version of the document.
|
String |
toString() |
public Version getPDFVersion()
public abstract void setPDFVersion(Version version)
version - the PDF versionIllegalStateException - if the PDF version is not allowed to change.public static VersionController getFixedVersionController(Version version)
version - the PDF version (must be >= v1.4)public static VersionController getDynamicVersionController(Version initialVersion, PDFDocument doc)
initialVersion - the initial PDF versiondoc - the document whose version is being setCopyright © 2023 Apache Software Foundation. All rights reserved.