tried to apply the patch for the validation error from the sample on mustangproject

This commit is contained in:
Jochen Staerk
2016-05-17 10:35:14 +02:00
parent a9fe436523
commit cb3de6bbcb

View File

@@ -1478,6 +1478,10 @@ public class ZUGFeRDExporter {
cosArray = new COSArray();
}
cosArray.add(fs);
COSDictionary dict2 = doc.getDocumentCatalog().getCOSDictionary();
COSArray array = new COSArray();
array.add(fs.getCOSDictionary()); // see below
dict2.setItem("AF",array);
doc.getDocumentCatalog().getCOSDictionary().setItem("AF", cosArray);
}