aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-01-05 14:39:18 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-01-05 14:39:18 +0000
commit23dded71da5ab965f8d11b8673fcdf0edef00bd3 (patch)
treefda0f85d6d80af5e3eb710ad65bc29de5d169678 /src/main/java/at
parentf7f25c895855b4fd4f3d778e26242385c58f0829 (diff)
downloadpdf-as-3-23dded71da5ab965f8d11b8673fcdf0edef00bd3.tar.gz
pdf-as-3-23dded71da5ab965f8d11b8673fcdf0edef00bd3.tar.bz2
pdf-as-3-23dded71da5ab965f8d11b8673fcdf0edef00bd3.zip
added text sig version 1.2.0
fixed text extraction encoding bug git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@531 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/PdfASID.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/PdfASID.java b/src/main/java/at/knowcenter/wag/egov/egiz/PdfASID.java
index cfa9636..7e4b9c0 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/PdfASID.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/PdfASID.java
@@ -21,6 +21,7 @@ import java.io.Serializable;
import at.gv.egiz.pdfas.exceptions.ErrorCode;
import at.knowcenter.wag.egov.egiz.exceptions.InvalidIDException;
+import at.knowcenter.wag.egov.egiz.framework.SignatorFactory;
/**
* This class encapsulates the Pdf-AS ID ("Kennzeichnung") urn.
@@ -200,5 +201,14 @@ public class PdfASID implements Serializable
{
return URN + SPLIT_STRING + NAMESPACE + SPLIT_STRING + this.vendor + SPLIT_STRING + this.type + SPLIT_STRING + this.version;
}
+
+ /**
+ * Returns if it is an old textual signature (pre 1.2.0) that used cp1252 encoding for text extraction (mostly)
+ * @return
+ */
+ public boolean isOldCp1252Version() {
+ return this.getVersion().equals(SignatorFactory.VERSION_1_0_0)
+ || this.getVersion().equals(SignatorFactory.VERSION_1_1_0);
+ }
}