aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas
diff options
context:
space:
mode:
authoremusic <emina.music@egiz.gv.at>2020-01-17 14:39:04 +0100
committeremusic <emina.music@egiz.gv.at>2020-01-17 14:39:04 +0100
commitcc3e985f2ed5c78b04f494feb2abdb534479a06e (patch)
treed14a1402cd1a20f5f46fe902f4459ce44cb76888 /pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas
parentddda14ba127c1f96763523cef707a1dda1b7cca0 (diff)
downloadpdf-as-4-cc3e985f2ed5c78b04f494feb2abdb534479a06e.tar.gz
pdf-as-4-cc3e985f2ed5c78b04f494feb2abdb534479a06e.tar.bz2
pdf-as-4-cc3e985f2ed5c78b04f494feb2abdb534479a06e.zip
changes in qr placeholder search - additional information removed, location of dictionary used for storing qr info
Diffstat (limited to 'pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas')
-rw-r--r--pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox/placeholder/PDFBoxPlaceholderExtractor.java3
-rw-r--r--pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java2
2 files changed, 1 insertions, 4 deletions
diff --git a/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox/placeholder/PDFBoxPlaceholderExtractor.java b/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox/placeholder/PDFBoxPlaceholderExtractor.java
index 18099b23..0e4227ec 100644
--- a/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox/placeholder/PDFBoxPlaceholderExtractor.java
+++ b/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox/placeholder/PDFBoxPlaceholderExtractor.java
@@ -11,14 +11,11 @@ public class PDFBoxPlaceholderExtractor implements PlaceholderExtractor {
@Override
public SignaturePlaceholderData extract(PDFObject doc,
String placeholderId, int matchMode) throws PdfAsException {
-
if (doc instanceof PDFBOXObject) {
PDFBOXObject object = (PDFBOXObject) doc;
return SignaturePlaceholderExtractor.extract(object.getDocument(),
placeholderId, matchMode);
}
-
throw new PdfAsException("INVALID STATE");
}
-
}
diff --git a/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java b/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java
index 751c1291..53eb9f80 100644
--- a/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java
+++ b/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java
@@ -148,7 +148,7 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants {
doc = pdfObject.getDocument();
SignaturePlaceholderData signaturePlaceholderData = PlaceholderFilter
- .checkPlaceholderSignature(pdfObject.getStatus(), pdfObject.getStatus().getSettings());
+ .checkPlaceholderSignatureLocation(pdfObject.getStatus(), pdfObject.getStatus().getSettings(), null);
TablePos tablePos = null;