public interface XMPUtilityService
In XMP, metadata consists of a set of properties that are associated with a document. Metadata includes such properties as the author, title, and modification date of a document. In a PDF file, metadata can be stored in two places:
For information, see Working With The XMP Utility Service.
Modifier and Type | Method and Description |
---|---|
XMPUtilityMetadata |
exportMetadata(Document inPDFDoc)
Returns the metadata located within a PDF document as an
XMPUtilityMetadata object. |
Document |
exportXMP(Document inPDFDoc)
Returns the metadata located within a PDF document as an XMP document.
|
Document |
importMetadata(Document inPDFDoc,
XMPUtilityMetadata metadata)
Replaces the metadata located within a PDF document with new metadata.
|
Document |
importXMP(Document inPDFDoc,
Document xmp)
Replaces the metadata located in a PDF document with newer metadata.
|
Document importXMP(Document inPDFDoc, Document xmp) throws XMPUtilityException
inPDFDoc
- A Document
object that represents the PDF document for which
metadata is replaced.xmp
- A Document
object that represents XMP metadata.Document
object that represents the PDF document that contains new metadata.XMPUtilityException
- if an error occurs during this operation.Document exportXMP(Document inPDFDoc) throws XMPUtilityException
inPDFDoc
- A Document
object that represents the PDF document for which
metadata is returned.Document
object that represents XMP metadata. Data located within this
object can be written to an XML file.XMPUtilityException
- if an error occurs during this operation.Document importMetadata(Document inPDFDoc, XMPUtilityMetadata metadata) throws XMPUtilityException
XMPUtilityMetadata
object removes entries from the metadata.
Also, as a fix for a bug, keywords supplied in the keywords list of the metadata object supplied will have
leading and trailing whitespace removed, whitespace being defined by Java's trim
operation on strings.inPDFDoc
- A Document
object that represents the PDF document for which
metadata is replaced.metadata
- A XMPUtilityMetadata
object that contains metadata values that are used to
replace existing metadata.Document
object that represents the PDF document that contains new metadata.XMPUtilityException
- if an error occurs during this operation.XMPUtilityMetadata exportMetadata(Document inPDFDoc) throws XMPUtilityException
XMPUtilityMetadata
object.inPDFDoc
- A Document
object that represents the PDF document for which
metadata is returned.XMPUtilityMetadata
object that represents XMP metadata.XMPUtilityException
- if an error occurs during this operation.Copyright © 1982–2022 Adobe Systems Inc.. All rights reserved.