PdfPackage

Inheritance: java.lang.Object, com.aspose.imaging.xmp.XmpPackage

public final class PdfPackage extends XmpPackage

Represents Adobe Pdf namespace.

Constructors

ConstructorDescription
PdfPackage()Initializes a new instance of the PdfPackage class.

Methods

MethodDescription
addValue(String key, String value)Adds string property.
setKeywords(String keywords)Sets the keywords.
setPdfVersion(String version)Sets the PDF version.
setProducer(String producer)Sets the name of the tool that created Pdf.
setTrapped(boolean isTrapped)Sets the trapped.

PdfPackage()

public PdfPackage()

Initializes a new instance of the PdfPackage class.

addValue(String key, String value)

public void addValue(String key, String value)

Adds string property.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe string representation of key that is identified with added value.
valuejava.lang.StringThe string value.

setKeywords(String keywords)

public void setKeywords(String keywords)

Sets the keywords.

Parameters:

ParameterTypeDescription
keywordsjava.lang.StringThe keywords.

setPdfVersion(String version)

public void setPdfVersion(String version)

Sets the PDF version.

Parameters:

ParameterTypeDescription
versionjava.lang.StringPdf version, for example: 1.0, 1.3 etc.

setProducer(String producer)

public void setProducer(String producer)

Sets the name of the tool that created Pdf.

Parameters:

ParameterTypeDescription
producerjava.lang.StringThe producer name.

setTrapped(boolean isTrapped)

public void setTrapped(boolean isTrapped)

Sets the trapped.

Parameters:

ParameterTypeDescription
isTrappedbooleanif set to true the document has been trapped.