When saving a document from DOCX to PDF I loose any customer properties in the original DOCX file.
Hi Peter,
Thanks for your inquiry. Please use
PdfSaveOptions.CustomPropertiesExport to get or set a value determining
the way CustomDocumentProperties are exported to PDF file. Default value
is None. PdfCustomPropertiesExport Enumeration specifies the way CustomDocumentProperties are exported to PDF file.
Standard : Custom properties are exported as entries in /Info dictionary.
Custom
properties with the following names are not exported: “Title”,
“Author”, “Subject”, “Keywords”, “Creator”, “Producer”, “CreationDate”,
“ModDate”, “Trapped”.
Metadata : Custom properties are Metadata.
The
namespace of exported properties in XMP packet is “custprops”. Every
property has an associated xml-element “custprops:Property1”,
“custprops:Property2” and so on. There is “rdf:Description” element
inside property element. The description element has two elements
“custprops:Name”, containing custom property’s name as a value of this
xml-element, and “custprops:Value”, containing custom property’s value
as value of this xml-element.
None: No custom properties are exported.
Hope this answers your query. Please let us know if you have any more queries.