Open podprad opened 1 year ago
Hi,
I've just fixed this issue in pull request #44
PdfSharp was simply setting its own new /Metadata object, not taking into account any already existing one that would be set.
I've updated my fix, making the behavior depend on a document option (it gives more control). See details in pull request.
Thank you for analysing it and your time.
I added a comment directly in PR.
Hi,
In 6.0.0-preview-4 I'm unable to set XMP metadata. I add own /Metadata dictionary, it's written to the output PDF, but finally PdfSharp links own indirect object:
In 1.50.5147 it was possible.
Here is the source code allowing to reproduce the issue: https://github.com/podprad/misc_public/tree/main/playgrounds/csharp/PDFSharpMetaIssue
Pasted code: