Adobe acrobat 7.0.5 sdk Manual De Usuario

Descargar
Página de 122
105
Working with Metadata
Object Data
12
Creating Object Data
Object data is generated by the authoring application, such as Microsoft Visio. You can also 
attach additional name/value pairs to a set of content objects.
You can generate object data by inserting pdfmarks into the PostScript file to be processed 
by Distiller. Using pdfmarks requires that you know PostScript well enough to either modify 
the PostScript file directly, or modify the authoring application to generate the appropriate 
pdfmarks in the PostScript stream. For more information, see 
 , the pdfmark Reference Manual., and the PDF Reference.
In an existing PDF document, you can use the 
PDSEdit
 APIs to create object data 
programatically from a plug-in.
Searching and Accessing Object Data
Beginning in Acrobat 7.0, you can access object data from a plug-in and from Acrobat 
JavaScript. 
From a plug-in, you use C APIs to:
Enumerate the 
PDSElement
 objects in a document which have user properties 
associated with them
Enumerate the object data associated with a 
PDSElement
 object as either 
ASText
 or 
CosObj
 objects
Check whether a PDF document or specific 
PDSElement
 has any user properties 
associated with it
Find the ancestor or child node in the structure tree of a 
PDSElement
 that has user 
properties
Search for object data using the 
kSearchUserProperties
 flag to the Search plug-
in.
You can search object data from Acrobat JavaScript by using the 
Search
 object’s 
objectmetadata
 property. There are no C APIs to search for object-level metadata from 
a plug-in.