aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox/src/main/java/at
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-27 13:41:05 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-27 13:41:05 +0100
commit1fca87878177b28ad0ae1d408275c4eca7a2e772 (patch)
treef529af30ce1b0a9d39ba99a80101074e31fdb7b5 /pdf-as-pdfbox/src/main/java/at
parent00f51f47d8448adb939bbc3cfd17673dd29bc10d (diff)
downloadpdf-as-4-1fca87878177b28ad0ae1d408275c4eca7a2e772.tar.gz
pdf-as-4-1fca87878177b28ad0ae1d408275c4eca7a2e772.tar.bz2
pdf-as-4-1fca87878177b28ad0ae1d408275c4eca7a2e772.zip
QR Code fix
Diffstat (limited to 'pdf-as-pdfbox/src/main/java/at')
-rw-r--r--pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java36
1 files changed, 18 insertions, 18 deletions
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 f3b867af..14082a10 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
@@ -131,6 +131,24 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants {
FileInputStream fis = new FileInputStream(new File(fisTmpFile));
doc = pdfObject.getDocument();
+
+ SignaturePlaceholderData signaturePlaceholderData = PlaceholderFilter
+ .checkPlaceholderSignature(pdfObject.getStatus(),
+ pdfObject.getStatus().getSettings());
+
+ TablePos tablePos = null;
+
+ if (signaturePlaceholderData != null) {
+ // Placeholder found!
+
+ if (signaturePlaceholderData.getProfile() != null) {
+ requestedSignature
+ .setSignatureProfileID(signaturePlaceholderData
+ .getProfile());
+ }
+
+ tablePos = signaturePlaceholderData.getTablePos();
+ }
PDSignature signature = new PDSignature();
signature.setFilter(COSName.getPDFName(signer.getPDFFilter())); // default
@@ -176,24 +194,6 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants {
.getStatus().getSignatureProfileConfiguration(
requestedSignature.getSignatureProfileID());
- SignaturePlaceholderData signaturePlaceholderData = PlaceholderFilter
- .checkPlaceholderSignature(pdfObject.getStatus(),
- pdfObject.getStatus().getSettings());
-
- TablePos tablePos = null;
-
- if (signaturePlaceholderData != null) {
- // Placeholder found!
-
- if (signaturePlaceholderData.getProfile() != null) {
- requestedSignature
- .setSignatureProfileID(signaturePlaceholderData
- .getProfile());
- }
-
- tablePos = signaturePlaceholderData.getTablePos();
- }
-
if (tablePos == null) {
// ================================================================
// PositioningStage (visual) -> find position or use fixed