diff options
author | ferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2009-12-14 17:38:49 +0000 |
---|---|---|
committer | ferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2009-12-14 17:38:49 +0000 |
commit | e7014c0cf999d04a2f8cc0d9423dc55a1afacf3d (patch) | |
tree | a53cbc2a98b8f34ef172c734d4b2c4c7af47ceef /src | |
parent | 9b615852df5f56eeb67c4dd021a56e72d31a2498 (diff) | |
download | pdf-as-3-e7014c0cf999d04a2f8cc0d9423dc55a1afacf3d.tar.gz pdf-as-3-e7014c0cf999d04a2f8cc0d9423dc55a1afacf3d.tar.bz2 pdf-as-3-e7014c0cf999d04a2f8cc0d9423dc55a1afacf3d.zip |
added iso... prefix
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@508 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/gv/egiz/pdfas/utils/PdfAUtil.java | 9 |
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 {
|