aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/utils/PdfAUtil.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/utils/PdfAUtil.java b/src/main/java/at/gv/egiz/pdfas/utils/PdfAUtil.java
index dd0560d..bc171cb 100644
--- a/src/main/java/at/gv/egiz/pdfas/utils/PdfAUtil.java
+++ b/src/main/java/at/gv/egiz/pdfas/utils/PdfAUtil.java
@@ -6,7 +6,10 @@ package at.gv.egiz.pdfas.utils;
*
*/
public class PdfAUtil {
-
+ /**
+ * dferbas: Text representation of pdfa version string
+ */
+ private static final String PDFA_PREFIX = "ISO 19005-1:2005 PDF/A-";
/**
* Extract pdfa version from pdf metadata
* @param pdfMetadata
@@ -22,13 +25,13 @@ public class PdfAUtil {
if (pdfaI > -1) {
int part = inf.indexOf(partMark);
- StringBuffer version = new StringBuffer("PDF/A-");
+ StringBuffer version = new StringBuffer(PDFA_PREFIX);
part = part + partMark.length();
version.append(inf.substring(part, part + 1));
int conf = inf.indexOf(confMark);
conf = conf + confMark.length();
- version.append(inf.substring(conf, conf + 1));
+ version.append(inf.substring(conf, conf + 1).toLowerCase());
return version.toString();
} else {