Search and Index Essentials
Searching Metadata
11
Searching Metadata
Using Acrobat JavaScript to Read and Search XMP Metadata
PDF documents contain document metadata in XML format, which includes information
such as the document title, subject, author’s name, keywords, copyright information, date
modified, file size, and file name and location path.
To use Acrobat JavaScript to search a document’s XMP metadata, set the
search
object’s
docXMP
property to
true
, as shown in the following code:
search.docXMP = true;
Acrobat JavaScript Scripting Guide
199