diff options
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.java | 11 |
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()); } |