updatex xmpparser settings

This commit is contained in:
jstaerk
2025-10-27 06:42:15 +01:00
parent 5292460d1f
commit 720d43186d
2 changed files with 2 additions and 0 deletions

View File

@@ -696,6 +696,7 @@ public class ZUGFeRDExporterFromA3 extends XRExporter implements IZUGFeRDExporte
if ((meta != null) && (meta.getLength() > 0)) { if ((meta != null) && (meta.getLength() > 0)) {
try { try {
DomXmpParser xmpParser = new DomXmpParser(); DomXmpParser xmpParser = new DomXmpParser();
xmpParser.setStrictParsing(false);
return xmpParser.parse(meta.toByteArray()); return xmpParser.parse(meta.toByteArray());
} catch (XmpParsingException e) { } catch (XmpParsingException e) {
throw new IOException(e); throw new IOException(e);

View File

@@ -111,6 +111,7 @@ public class ZUGFeRDExporterFromPDFA implements IZUGFeRDExporter {
if (metadata != null) { if (metadata != null) {
try { try {
DomXmpParser xmpParser = new DomXmpParser(); DomXmpParser xmpParser = new DomXmpParser();
xmpParser.setStrictParsing(false);
XMPMetadata xmp = xmpParser.parse(metadata.createInputStream()); XMPMetadata xmp = xmpParser.parse(metadata.createInputStream());
PDFAIdentificationSchema pdfaSchema = xmp.getPDFAIdentificationSchema(); PDFAIdentificationSchema pdfaSchema = xmp.getPDFAIdentificationSchema();