PdfPackage Class

Summary: Represents Adobe Pdf namespace.

Module: aspose.psd.xmp.schemas.pdf

Full Name: aspose.psd.xmp.schemas.pdf.PdfPackage

Inheritance: IXmlValue, XmpPackage

Aspose.PSD Version: 24.12.0

Constructors

NameDescription
PdfPackage()Initializes a new instance of the PdfPackage class

Properties

NameTypeAccessDescription
namespace_uristringrGets the namespace URI.
prefixstringrGets the prefix.
xml_namespacestringrGets the XML namespace.

Methods

NameDescription
add_value(key, value)Adds string property.
clear()Clears this instance.
contains_key(key)Determines whether the specified key contains key.
get_xml_value()Converts XMP value to the XML representation.
remove(key)Remove the value with the specified key.
set_keywords(keywords)Sets the keywords.
set_pdf_version(version)Sets the PDF version.
set_producer(producer)Sets the name of the tool that created Pdf.
set_trapped(is_trapped)Sets the trapped.
set_value(key, value)Sets the value.
set_xmp_type_value(key, value)Sets the XMP type value.

Constructor: PdfPackage()

 PdfPackage() 

Initializes a new instance of the PdfPackage class

Method: add_value(key, value)

 add_value(key, value) 

Adds string property.

Parameters:

ParameterTypeDescription
keystringThe string representation of key that is identified with added value.
valuestringThe string value.

Method: contains_key(key)

 contains_key(key) 

Determines whether the specified key contains key.

Parameters:

ParameterTypeDescription
keystringThe key to be checked.

Returns

TypeDescription
boolReturns true if the specified key contains key.

Method: get_xml_value()

 get_xml_value() 

Converts XMP value to the XML representation.

Returns

TypeDescription
stringReturns the XMP value converted to the XML representation.

Method: remove(key)

 remove(key) 

Remove the value with the specified key.

Parameters:

ParameterTypeDescription
keystringThe string representation of key that is identified with removed value.

Returns

TypeDescription
boolReturns true if the value with the specified key was removed.

Method: set_keywords(keywords)

 set_keywords(keywords) 

Sets the keywords.

Parameters:

ParameterTypeDescription
keywordsstringThe keywords.

Method: set_pdf_version(version)

 set_pdf_version(version) 

Sets the PDF version.

Parameters:

ParameterTypeDescription
versionstringPdf version, for example: 1.0, 1.3 etc.

Method: set_producer(producer)

 set_producer(producer) 

Sets the name of the tool that created Pdf.

Parameters:

ParameterTypeDescription
producerstringThe producer name.

Method: set_trapped(is_trapped)

 set_trapped(is_trapped) 

Sets the trapped.

Parameters:

ParameterTypeDescription
is_trappedboolif set to true the document has been trapped.

Method: set_value(key, value)

 set_value(key, value) 

Sets the value.

Parameters:

ParameterTypeDescription
keystringThe string representation of key that is identified with added value.
valueIXmlValueThe value to add to.

Method: set_xmp_type_value(key, value)

 set_xmp_type_value(key, value) 

Sets the XMP type value.

Parameters:

ParameterTypeDescription
keystringThe string representation of key that is identified with set value.
valueXmpTypeBaseThe value to set to.