From cb3de6bbcb9c40894858bfdf032407d1f75c7488 Mon Sep 17 00:00:00 2001 From: Jochen Staerk Date: Tue, 17 May 2016 10:35:14 +0200 Subject: [PATCH] tried to apply the patch for the validation error from the sample on mustangproject --- .../main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporter.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mustang/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporter.java b/mustang/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporter.java index 31bb2f9d..be8a8d99 100644 --- a/mustang/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporter.java +++ b/mustang/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporter.java @@ -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); }