DocumentInfoItems Object (COM-based API)

This object provides access to a collection of DocumentInfoItem objects which represent metadata from the PDF (PDF/A) file. A reference to this object is returned by the  IPDFExportSettings::DocumentInfo (IPDFAExportSettings::DocumentInfo) property.

You can add key-value pairs to the DocumentInfoItems collection using the Add method. The key name (IDocumentInfoItem::Name) must not be an empty string and must not repeat any of the other key names of the collection.

You must not add key-value pairs with Creator and Producer key names. The value of the Producer key name can be set in the IPDFExportSettings::Producer (IPDFAExportSettings::Producer) property. The value of the Creator key name cannot be changed. It is the same as in the source document.

You must not add key-value pairs with ModDate and CreationDate key names. The value of the ModDate and CreationDate key names cannot be changed. The value of the ModDate key is set to the current date, the value of the CreationDate key is copied from the source document, or is set to the current date.

If you set the values of the Author, Keywords, Subject or Title keys, the values of the corresponding properties of the PDFExportSettings (PDFAExportSettings) object will be set to the same value. Vice versa, if you change the values of the Author, Keywords, Subject or Title properties of the PDFExportSettings (PDFAExportSettings) object, the values of the corresponding keys will be changed or the corresponding key-value pairs will be added to the collection.

Properties
Name Type Description
Count Long, read-only Stores the number of elements in the collection.
Methods
Name Description
Add Adds a new DocumentInfoItem object at the end of the collection.
Item Provides access to a single element of the collection.
Remove Removes an element from the collection.
RemoveAll Removes all the elements from the collection.
See also

Working with Collections,

DocumentInfoItem,

IPDFExportSettings::DocumentInfo,

IPDFAExportSettings::DocumentInfo

26.03.2024 13:49:49

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.