correction in XMP header
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
1.5.6
|
||||
=====
|
||||
|
||||
closes #69
|
||||
closes #69.
|
||||
Corrected EN 16931 XMP Schema Extension header
|
||||
|
||||
1.5.5
|
||||
=====
|
||||
|
||||
@@ -41,6 +41,8 @@ public class XMPSchemaZugferd extends XMPSchema {
|
||||
String conformanceLevelValue=conformanceLevel.name();
|
||||
if (conformanceLevelValue.equals("BASICWL")) {
|
||||
conformanceLevelValue="BASIC WL";
|
||||
} else if (conformanceLevelValue.equals("EN16931")) {
|
||||
conformanceLevelValue="EN 16931";
|
||||
}
|
||||
setTextPropertyValue("ConformanceLevel", conformanceLevelValue);
|
||||
setTextPropertyValue("DocumentType", "INVOICE");
|
||||
|
||||
@@ -262,7 +262,7 @@ public class MustangReaderWriterCustomXMLTest extends TestCase {
|
||||
zea1.close();
|
||||
String pdfContent=baos.toString("UTF-8");
|
||||
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) {
|
||||
// TODO Auto-generated catch block
|
||||
|
||||
Reference in New Issue
Block a user