Acrobat SDK User’s Guide
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
“Choosing an Adobe PDF
Settings File” on page 41
, 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.
Summary of Contents for Acrobat 7.0.5
Page 10: ...Contents 10 Acrobat SDK User s Guide ...
Page 66: ...Modifying the User Interface Customizing Acrobat Help 6 66 Acrobat SDK User s Guide ...
Page 78: ...XML and the Acrobat SDK Managing XML based Information 8 78 Acrobat SDK User s Guide ...
Page 100: ...Providing Document Security Document Rights 11 100 Acrobat SDK User s Guide ...
Page 106: ...Working with Metadata Object Data 12 106 Acrobat SDK User s Guide ...
Page 110: ...Searching and Indexing Indexing PDF Documents 13 110 Acrobat SDK User s Guide ...
Page 118: ...Working With PDF Layers Working with Layers from a Plug in 15 118 Acrobat SDK User s Guide ...