From e7014c0cf999d04a2f8cc0d9423dc55a1afacf3d Mon Sep 17 00:00:00 2001 From: ferbas Date: Mon, 14 Dec 2009 17:38:49 +0000 Subject: added iso... prefix git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@508 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/java/at/gv/egiz/pdfas/utils/PdfAUtil.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/gv') 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 { -- cgit v1.2.3