summaryrefslogtreecommitdiff
path: root/pdf-over-commons/src/main/java/at/asit
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-09 14:39:01 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-09 14:39:01 +0200
commit209f81ea544762f25aedf10551e33feef74272b5 (patch)
tree9e8292ecb439733ed29ea0f5eb502d90d531862b /pdf-over-commons/src/main/java/at/asit
parent98897fa9be7c9620352eb39a9c434a06cf151db1 (diff)
downloadpdf-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')
-rw-r--r--pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java5
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";