Library: itext7 8.0.5
XMP parser throws error: Duplicate property or field node 'pdf:Producer' (203)
Is there a way to tell XMPMetaFactory.ParseFromBuffer to be less strict during validation? What could be the workaround?
I failed to find other free XMP parser libraries.
The only thing that comes to my mind is to serialize XMP to string, parse it into XDocument, update it, serialize back to string and call PdfDocument.SetXmpMetadata.
Example:
A
http://archyvai.lt/pdf-ltud/2013/level/
PDF-LT-V1.0
AB "LTG Cargo"
304977594
Geležinkelio g. 12, Vilnius
False
AB "LTG Cargo"
MG sp. Z o.o. sp. K Contract LT.EN
MG sp. Z o.o. sp. K Contract LT.EN
lt-LT
Microsoft® Word for Microsoft 365; modified using iText® Core 8.0.5 (AGPL version) ©2000-2024 Apryse Group NV; modified using OpenPDF 1.3.43
2025-07-24T14:47:29+02:00