Remove leading characters from extracted XMP metadata.

This commit is contained in:
langfr
2026-03-26 12:27:49 +01:00
parent 56b9099c3c
commit 0ba2bf5363
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;