PDF Metadata

You can edit metadata (author, subject, title, keywords, producer, or creator of the document) in a PDF file. To do so, user 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 0 found this helpful

Have more questions? Submit a request

Recently viewed