From 209f81ea544762f25aedf10551e33feef74272b5 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Tue, 9 Aug 2022 14:39:01 +0200 Subject: fix scaling mm -> pdf units --- .../src/main/java/at/asit/pdfover/commons/Constants.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pdf-over-commons/src/main') 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"; -- cgit v1.2.3