aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-03-03 11:38:30 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-03-03 11:38:30 +0100
commit2e94ff4058d7c1717ca3f3cff1730b2326a0f8fc (patch)
tree9b69b0399ac508d35af69058a96853a92e76485b /pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl
parent56de7480394aaced1ac61b8f278484def9e01c18 (diff)
downloadpdf-as-4-2e94ff4058d7c1717ca3f3cff1730b2326a0f8fc.tar.gz
pdf-as-4-2e94ff4058d7c1717ca3f3cff1730b2326a0f8fc.tar.bz2
pdf-as-4-2e94ff4058d7c1717ca3f3cff1730b2326a0f8fc.zip
fixed minimum placeholder size
Diffstat (limited to 'pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl')
-rw-r--r--pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java11
1 files changed, 7 insertions, 4 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 3e9fa702..97faf102 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
@@ -35,6 +35,7 @@ import java.io.InputStream;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
+import java.util.UUID;
import org.apache.commons.io.IOUtils;
import org.apache.pdfbox.cos.COSArray;
@@ -168,11 +169,12 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants {
float minWidth = signatureProfileConfiguration.getMinWidth();
- if (tablePos.getWidth() < minWidth) {
- tablePos.width = minWidth;
- logger.debug("Correcting placeholder with to minimum width {}", minWidth);
+ if(minWidth > 0) {
+ if (tablePos.getWidth() < minWidth) {
+ tablePos.width = minWidth;
+ logger.debug("Correcting placeholder with to minimum width {}", minWidth);
+ }
}
-
logger.debug("Placeholder Position set to: " + tablePos.toString());
}
}
@@ -389,6 +391,7 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants {
}
options.setPage(positioningInstruction.getPage());
+
options.setVisualSignature(properties.getVisibleSignature());
}