aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox/src/main/java
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-24 10:46:14 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-24 10:46:14 +0200
commitb14be6946454595f9a890e4015622a565ab3caa7 (patch)
treefc1aa779d8bf05fb8b2b635e333842f4b4999637 /pdf-as-pdfbox/src/main/java
parenta69453749e6317f15c6bcb6c1da5b33e31244f65 (diff)
downloadpdf-as-4-b14be6946454595f9a890e4015622a565ab3caa7.tar.gz
pdf-as-4-b14be6946454595f9a890e4015622a565ab3caa7.tar.bz2
pdf-as-4-b14be6946454595f9a890e4015622a565ab3caa7.zip
Moved signature size
Diffstat (limited to 'pdf-as-pdfbox/src/main/java')
-rw-r--r--pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java2
1 files changed, 1 insertions, 1 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 ee9da479..f3b867af 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
@@ -166,6 +166,7 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants {
signer.setPDSignature(signature);
SignatureOptions options = new SignatureOptions();
+ options.setPreferedSignatureSize(0x1000);
// Is visible Signature
if (requestedSignature.isVisual()) {
@@ -359,7 +360,6 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants {
// }
// }
- options.setPreferedSignatureSize(0x1000);
options.setPage(positioningInstruction.getPage());
options.setVisualSignature(properties.getVisibleSignature());
}