DL Logo

Metadata Functions

PDDocGetXAPMetadataCompactOptional

Header: PDMetadataProcs.h:575

Description

Allow customer to get XML/RDF metadata in a full (non-compact) form Gets the XMP metadata associated with a document. It returns an ASText whose text is the XML text of the XMP metadata associated with the document pdDoc. The ASText becomes the property of the client, which is free to alter or destroy it.

The XMP metadata returned always represents all the properties in the pdDoc object's Info dictionary, and can also contain properties not present in the Info dictionary. This call is preferred to PDDocGetInfo(), which only returns properties that are in the Info dictionary (although the older function is supported for compatibility).

Note: The term XAP refers to an early internal code name for Adobe's Extensible Metadata Platform (XMP). For more information on this protocol, see the Adobe XMP specification.

Syntax

ASText PDDocGetXAPMetadataCompactOptional(IN PDDoc pdDoc, IN ASBool enableCompactRDF);

Parameters

pdDoc
The document containing the metadata.
enableCompactRDF
True if the XML/RDF output is in compact form.

Returns

An ASText object containing the XMP metadata associated with the document pdDoc.

Exceptions