public abstract class VersionController
extends java.lang.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.
|
java.lang.String |
toString() |
public Version getPDFVersion()
public abstract void setPDFVersion(Version version)
version
- the PDF versionjava.lang.IllegalStateException
- if the PDF version is not allowed to change.public java.lang.String toString()
toString
in class java.lang.Object
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 1999-2017 The Apache Software Foundation. All Rights Reserved.