Merge pull request #1077 from langfr/bugfix/XMPParser

Remove leading characters from extracted XMP metadata.
This commit is contained in:
Jochen Staerk
2026-04-09 11:27:52 +02:00
committed by GitHub
3 changed files with 10 additions and 1 deletions

View File

@@ -127,7 +127,7 @@ public class PDFValidator extends Validator {
final ZUGFeRDImporter zi = new ZUGFeRDImporter();
zi.doIgnoreCalculationErrors();//of course the calculation will still be schematron checked
zi.setInputStream(inputStream);
final String xmp = zi.getXMP();
final String xmp = zi.getXMP().substring(zi.getXMP().indexOf('<'));
final Document docXMP;