Scope: Acrobat 5 and Up
Skill Level: Beginner
Prerequisites: Familiarity with Acrobat
this.info.title = "My Summer Vacation"; // Set the Document Title this.info.mySpecialProp = 3; // Create a custom entry
To see the effects of this code, use the “File>Document Properties...” menu item to display the Document Properties Dialog. Changes made in either of these locations, in the dialog or the info property, are immediately reflected in the other.
In Acrobat 6 a new metadata property was added to the document object. The value of this property is the complete text of XMP metadata. XMP is the XML format used to store the metadata in a PDF. It is possible to parse and modify this string. Changes made to it will be immediately reflected in both the Document Properties dialog and the info property. But, this is not an advisable methodology. Modifying the XMP directly is much more complex, and therefore error prone, than using the info property.
|Edit PDF create PDF Action Wizard|
Try Acrobat DC
Get started >
Post, discuss and be part of the Acrobat community.
Join now >