aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-12-10 14:23:21 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-12-10 14:23:21 +0000
commit8ba10b6fa16c78ec3a8661d7b050320971495405 (patch)
treea8c37cc68bdab41f0387f0b83a4c76e697552ea0 /src/main/java/at/knowcenter
parent3c227f61c5e7bd5b9adceaa0d62e0c9862f7868b (diff)
downloadpdf-as-3-8ba10b6fa16c78ec3a8661d7b050320971495405.tar.gz
pdf-as-3-8ba10b6fa16c78ec3a8661d7b050320971495405.tar.bz2
pdf-as-3-8ba10b6fa16c78ec3a8661d7b050320971495405.zip
improved nonObjectExtraction. Use per signature basis
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@506 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/knowcenter')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/pdf/TextualSignatureHolder.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/TextualSignatureHolder.java b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/TextualSignatureHolder.java
index 0971f90..8c7863d 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/TextualSignatureHolder.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/TextualSignatureHolder.java
@@ -18,6 +18,8 @@
package at.knowcenter.wag.egov.egiz.pdf;
import java.io.Serializable;
+import java.util.Iterator;
+import java.util.List;
import at.gv.egiz.pdfas.framework.input.DataSource;
import at.gv.egiz.pdfas.framework.input.TextDataSource;
@@ -53,6 +55,8 @@ public class TextualSignatureHolder implements Serializable, SignatureHolder
private SignatureObject signature_object = null;
private TextDataSource textDataSource = null;
+
+ private int uiBlockEndPos = 0;
public TextualSignatureHolder(String text, SignatureObject so)
{
@@ -114,6 +118,28 @@ public class TextualSignatureHolder implements Serializable, SignatureHolder
{
return this.textDataSource.getText();
}
+
+ public int getUiBlockEndPos() {
+ return this.uiBlockEndPos;
+ }
+
+ public void setUiBlockEndPos(int uiBlockEndPos) {
+ this.uiBlockEndPos = uiBlockEndPos;
+ }
+
+ public static void mulitSetUiBlockEndPos(List signatureHolders, int uiBlockEndPos) {
+ for (Iterator it = signatureHolders.iterator(); it.hasNext();) {
+ SignatureHolder sh = (SignatureHolder) it.next();
+ trySetUiBlockEndPos(sh, uiBlockEndPos);
+ }
+ }
+
+ public static void trySetUiBlockEndPos(SignatureHolder sh, int uiBlockEndPos ) {
+ if (sh != null && sh instanceof TextualSignatureHolder) {
+ ((TextualSignatureHolder)sh).setUiBlockEndPos(uiBlockEndPos);
+ }
+ }
+
}