aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-03-20 14:41:50 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-03-20 14:41:50 +0100
commitf179c8db3574d03bb1b6b5be1bd86c9ea04073ad (patch)
tree2e409af0e8bd762d9d38dc2d9fe7bc3402d7c343 /pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib
parent0dc3dfacb8c8f5bbe4dff667a62dcfc879e06367 (diff)
downloadpdf-as-4-f179c8db3574d03bb1b6b5be1bd86c9ea04073ad.tar.gz
pdf-as-4-f179c8db3574d03bb1b6b5be1bd86c9ea04073ad.tar.bz2
pdf-as-4-f179c8db3574d03bb1b6b5be1bd86c9ea04073ad.zip
added Placeholder ID and Mode configuration settings
Diffstat (limited to 'pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib')
-rw-r--r--pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox/placeholder/SignaturePlaceholderExtractor.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox/placeholder/SignaturePlaceholderExtractor.java b/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox/placeholder/SignaturePlaceholderExtractor.java
index 9d2f7717..85849109 100644
--- a/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox/placeholder/SignaturePlaceholderExtractor.java
+++ b/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox/placeholder/SignaturePlaceholderExtractor.java
@@ -73,6 +73,7 @@ import org.slf4j.LoggerFactory;
import at.gv.egiz.pdfas.common.exceptions.PDFIOException;
import at.gv.egiz.pdfas.common.exceptions.PdfAsException;
import at.gv.egiz.pdfas.common.exceptions.PlaceholderExtractionException;
+import at.gv.egiz.pdfas.lib.impl.placeholder.PlaceholderExtractorConstants;
import at.gv.egiz.pdfas.lib.impl.placeholder.SignaturePlaceholderContext;
import at.gv.egiz.pdfas.lib.impl.placeholder.SignaturePlaceholderData;
import at.knowcenter.wag.egov.egiz.pdf.TablePos;
@@ -94,18 +95,13 @@ import com.google.zxing.common.HybridBinarizer;
* @author exthex
*
*/
-public class SignaturePlaceholderExtractor extends PDFStreamEngine {
+public class SignaturePlaceholderExtractor extends PDFStreamEngine implements PlaceholderExtractorConstants{
/**
* The log.
*/
private static Logger logger = LoggerFactory
.getLogger(SignaturePlaceholderExtractor.class);
- public static final String QR_PLACEHOLDER_IDENTIFIER = "PDF-AS-POS";
- public static final int PLACEHOLDER_MATCH_MODE_STRICT = 0;
- public static final int PLACEHOLDER_MATCH_MODE_MODERATE = 1;
- public static final int PLACEHOLDER_MATCH_MODE_LENIENT = 2;
-
private List<SignaturePlaceholderData> placeholders = new Vector<SignaturePlaceholderData>();
private int currentPage = 0;