updatex xmpparser settings
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user