diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-09 14:39:01 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-09 14:39:01 +0200 |
commit | 209f81ea544762f25aedf10551e33feef74272b5 (patch) | |
tree | 9e8292ecb439733ed29ea0f5eb502d90d531862b /pdf-over-commons/src/main/java/at/asit/pdfover/commons | |
parent | 98897fa9be7c9620352eb39a9c434a06cf151db1 (diff) | |
download | pdf-over-209f81ea544762f25aedf10551e33feef74272b5.tar.gz pdf-over-209f81ea544762f25aedf10551e33feef74272b5.tar.bz2 pdf-over-209f81ea544762f25aedf10551e33feef74272b5.zip |
fix scaling mm -> pdf units
Diffstat (limited to 'pdf-over-commons/src/main/java/at/asit/pdfover/commons')
-rw-r--r-- | pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java index e6f688ef..5e4de95e 100644 --- a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java +++ b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java @@ -94,6 +94,11 @@ public class Constants { /** File suffix for the signed document */ public final static String SIGNED_SUFFIX = "_signed"; + public final static double PDF_UNITS_PER_MM = (595.0 / 210.0); + + /** The default target size for logo-only signatures (in mm) */ + public final static double DEFAULT_LOGO_ONLY_SIZE = 23; + /** Local BKU URL */ public static final String LOCAL_BKU_URL = "http://127.0.0.1:3495/http-security-layer-request"; |