Hi,
I'm just wondering if it is possible to add custom metadata to a PDF document? And if yes, do you have some example code or pointers?
Here's an example of what we want to do... We have a program that generates PDF files that are mailed to our customers. We want to add metadata for use of a future document atchiving system. So we'd like add metadata like: Firstname="John", Lastname="Doe".
Thanks,
Chris McKinnon
Metadata
Re: Metadata
Support · Aug 5, 2010Hello Chris McKinnon,
You can add XMPMetaData to the PDF document using our product without any problem. You can also refer to the XMPMetaData
topic on our help documentation.
XMP values that are exposed through the Document’s properties (Author, Keywords, Subject, etc.) can be read or modified from an existing PDF using the MergeDocument class.
Any custom XMP schema can be created using our product by creating a custom class that inherits from the XmpSchema base class.
This class would need to override the Draw method and it would use the XmpWriter class to output the respective XML data.
All the XMP data from the existing merged PDF will be preserved but if it is not one of those specific properties off the document is cannot be read or changed.
You can add new XmpMetaData by removing the old one from the existing PDF without any problem. You can use MergeOptions class to remove the XmpMetaData while merging.
Thanks,
ceTe Software Support Team.