PDF Metadata

Question

How to export PDF metadata?

Answer

To do so, please use the DocumentContentInfo object:

//0. Create and process the document
FREngine.FRDocument document = engineLoader.Engine.CreateFRDocumentFromImage(@"D:\image.jpg");
document.Process();

//1. Write the necessary metadata to the corresponding DocumentContentInfo property
document.DocumentContentInfo.Producer = "The White Queen";

//2. Create PDFExportParams
FREngine.PDFExportParams pdfExportParams = engineLoader.Engine.CreatePDFExportParams();

//3. Set the corresponding property of MetaDataWritingParams object to TRUE
pdfExportParams.PDFFeatures.MetaDataWritingParams.WriteProducer = true;

//4. Perform export with these settings
document.Export(@"D:\export.pdf", FREngine.FileExportFormatEnum.FEF_PDF, pdfExportParams);

Was this article helpful?

0 out of 4 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.