PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
PdfSharp 6.0.0: XMP Metadata automatically added on Save http://forum.pdfsharp.com/viewtopic.php?f=2&t=4604 |
Page 1 of 1 |
Author: | AndreasGey76 [ Tue Jun 04, 2024 9:16 am ] |
Post subject: | PdfSharp 6.0.0: XMP Metadata automatically added on Save |
I want to add my custom XMP Metadata on save. Is there a way to do this? In earlier Versions (<6.0.0) i added the /Metadata to the Catalog and all works fine. But since 6.0.0 Metadata is added automatically. Here the code from PdfDocument.cs.PrepareForSave(): // Create PdfMetadata now to include the final document information in XMP generation. Catalog.Elements.SetReference(PdfCatalog.Keys.Metadata, new PdfMetadata(this)); |
Author: | TH-Soft [ Tue Jun 04, 2024 9:54 am ] |
Post subject: | Re: PdfSharp 6.0.0: XMP Metadata automatically added on Save |
That's a known issue and there is no solution yet. You can take the source code and remove that line. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |