Package com.itextpdf.kernel.pdf
Class PdfDeveloperExtension
- java.lang.Object
-
- com.itextpdf.kernel.pdf.PdfDeveloperExtension
-
public class PdfDeveloperExtension extends java.lang.ObjectBeginning with BaseVersion 1.7, the extensions dictionary lets developers designate that a given document contains extensions to PDF. The presence of the extension dictionary in a document indicates that it may contain developer-specific PDF properties that extend a particular base version of the PDF specification. The extensions dictionary enables developers to identify their own extensions relative to a base version of PDF. Additionally, the convention identifies extension levels relative to that base version. The intent of this dictionary is to enable developers of PDF-producing applications to identify company-specific specifications that PDF-consuming applications use to interpret the extensions.
-
-
Field Summary
Fields Modifier and Type Field Description static PdfDeveloperExtensionADOBE_1_7_EXTENSIONLEVEL3An instance of this class for Adobe 1.7 Extension level 3.protected PdfNamebaseVersionThe base version.static PdfDeveloperExtensionESIC_1_7_EXTENSIONLEVEL2An instance of this class for ETSI 1.7 Extension level 2.static PdfDeveloperExtensionESIC_1_7_EXTENSIONLEVEL5An instance of this class for ETSI 1.7 Extension level 5.protected intextensionLevelThe extension level within the base version.private java.lang.StringextensionRevisionThe extension revision (ISO 32000-2:2020).private booleanisMultiValuedWhether the extension prefix is multivalued (ISO 32000-2:2020).static PdfDeveloperExtensionISO_32001An instance of this class for ISO/TS 32001.static PdfDeveloperExtensionISO_32002An instance of this class for ISO/TS 32002.static PdfDeveloperExtensionISO_32003An instance of this class for ISO/TS 32003.static PdfDeveloperExtensionISO_32004An instance of this class for ISO/TS 32004.protected PdfNameprefixThe prefix used in the Extensions dictionary added to the Catalog.private java.lang.StringurlThe extension URL (ISO 32000-2:2020).
-
Constructor Summary
Constructors Constructor Description PdfDeveloperExtension(PdfName prefix, PdfName baseVersion, int extensionLevel)Creates a PdfDeveloperExtension object.PdfDeveloperExtension(PdfName prefix, PdfName baseVersion, int extensionLevel, java.lang.String url, java.lang.String extensionRevision, boolean isMultiValued)Creates a PdfDeveloperExtension object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfNamegetBaseVersion()Gets the baseVersion name.PdfDictionarygetDeveloperExtensions()Generations the developer extension dictionary corresponding with the prefix.intgetExtensionLevel()Gets the extension level within the baseVersion.PdfNamegetPrefix()Gets the prefix name.booleanisMultiValued()Indicates whether the extension prefix is multivalued (ISO 32000-2:2020).
-
-
-
Field Detail
-
ADOBE_1_7_EXTENSIONLEVEL3
public static final PdfDeveloperExtension ADOBE_1_7_EXTENSIONLEVEL3
An instance of this class for Adobe 1.7 Extension level 3.
-
ESIC_1_7_EXTENSIONLEVEL2
public static final PdfDeveloperExtension ESIC_1_7_EXTENSIONLEVEL2
An instance of this class for ETSI 1.7 Extension level 2.
-
ESIC_1_7_EXTENSIONLEVEL5
public static final PdfDeveloperExtension ESIC_1_7_EXTENSIONLEVEL5
An instance of this class for ETSI 1.7 Extension level 5.
-
ISO_32001
public static final PdfDeveloperExtension ISO_32001
An instance of this class for ISO/TS 32001.
-
ISO_32002
public static final PdfDeveloperExtension ISO_32002
An instance of this class for ISO/TS 32002.
-
ISO_32004
public static final PdfDeveloperExtension ISO_32004
An instance of this class for ISO/TS 32004.
-
ISO_32003
public static final PdfDeveloperExtension ISO_32003
An instance of this class for ISO/TS 32003.
-
prefix
protected PdfName prefix
The prefix used in the Extensions dictionary added to the Catalog.
-
baseVersion
protected PdfName baseVersion
The base version.
-
extensionLevel
protected int extensionLevel
The extension level within the base version.
-
url
private final java.lang.String url
The extension URL (ISO 32000-2:2020).
-
extensionRevision
private final java.lang.String extensionRevision
The extension revision (ISO 32000-2:2020).
-
isMultiValued
private final boolean isMultiValued
Whether the extension prefix is multivalued (ISO 32000-2:2020).
-
-
Constructor Detail
-
PdfDeveloperExtension
public PdfDeveloperExtension(PdfName prefix, PdfName baseVersion, int extensionLevel)
Creates a PdfDeveloperExtension object.- Parameters:
prefix- the prefix referring to the developerbaseVersion- the number of the base versionextensionLevel- the extension level within the base version
-
PdfDeveloperExtension
public PdfDeveloperExtension(PdfName prefix, PdfName baseVersion, int extensionLevel, java.lang.String url, java.lang.String extensionRevision, boolean isMultiValued)
Creates a PdfDeveloperExtension object.- Parameters:
prefix- the prefix referring to the developerbaseVersion- the number of the base versionextensionLevel- the extension level within the base versionextensionRevision- the extension revision identifierurl- the URL specifying where to find more information about the extensionisMultiValued- flag indicating whether the extension prefix can have multiple values
-
-
Method Detail
-
getPrefix
public PdfName getPrefix()
Gets the prefix name.- Returns:
- a PdfName
-
getBaseVersion
public PdfName getBaseVersion()
Gets the baseVersion name.- Returns:
- a PdfName
-
getExtensionLevel
public int getExtensionLevel()
Gets the extension level within the baseVersion.- Returns:
- an integer
-
isMultiValued
public boolean isMultiValued()
Indicates whether the extension prefix is multivalued (ISO 32000-2:2020).- Returns:
- true if multivalued
-
getDeveloperExtensions
public PdfDictionary getDeveloperExtensions()
Generations the developer extension dictionary corresponding with the prefix.- Returns:
- a PdfDictionary
-
-