correction in XMP header

This commit is contained in:
Jochen Stärk
2019-01-25 16:13:19 +01:00
parent 970436cf41
commit 5c02f20e9d
3 changed files with 9 additions and 6 deletions

View File

@@ -1,7 +1,8 @@
1.5.6 1.5.6
===== =====
closes #69 closes #69.
Corrected EN 16931 XMP Schema Extension header
1.5.5 1.5.5
===== =====

View File

@@ -41,6 +41,8 @@ public class XMPSchemaZugferd extends XMPSchema {
String conformanceLevelValue=conformanceLevel.name(); String conformanceLevelValue=conformanceLevel.name();
if (conformanceLevelValue.equals("BASICWL")) { if (conformanceLevelValue.equals("BASICWL")) {
conformanceLevelValue="BASIC WL"; conformanceLevelValue="BASIC WL";
} else if (conformanceLevelValue.equals("EN16931")) {
conformanceLevelValue="EN 16931";
} }
setTextPropertyValue("ConformanceLevel", conformanceLevelValue); setTextPropertyValue("ConformanceLevel", conformanceLevelValue);
setTextPropertyValue("DocumentType", "INVOICE"); setTextPropertyValue("DocumentType", "INVOICE");

View File

@@ -262,7 +262,7 @@ public class MustangReaderWriterCustomXMLTest extends TestCase {
zea1.close(); zea1.close();
String pdfContent=baos.toString("UTF-8"); String pdfContent=baos.toString("UTF-8");
assertFalse(pdfContent.indexOf("(via mustangproject.org")==-1); assertFalse(pdfContent.indexOf("(via mustangproject.org")==-1);
assertFalse(pdfContent.indexOf("<zf:ConformanceLevel>EN16931</zf:ConformanceLevel>") == -1); assertFalse(pdfContent.indexOf("<zf:ConformanceLevel>EN 16931</zf:ConformanceLevel>") == -1);
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block