From 009b3970136978f29e6a25a71036a06692c65660 Mon Sep 17 00:00:00 2001 From: Christian Maierhofer Date: Mon, 13 Jun 2016 15:49:36 +0200 Subject: added config params for bg-detection and debug rendering --- .../configuration/cfg/advancedconfig.properties | 6 +++++- .../pdfas/lib/api/IConfigurationConstants.java | 6 ++++++ pdf-as-lib/src/main/resources/config/config.zip | Bin 1276440 -> 1276515 bytes 3 files changed, 11 insertions(+), 1 deletion(-) (limited to 'pdf-as-lib') diff --git a/pdf-as-lib/src/configuration/cfg/advancedconfig.properties b/pdf-as-lib/src/configuration/cfg/advancedconfig.properties index ade378df..7cdb87b2 100644 --- a/pdf-as-lib/src/configuration/cfg/advancedconfig.properties +++ b/pdf-as-lib/src/configuration/cfg/advancedconfig.properties @@ -93,4 +93,8 @@ #register Verificators default.verifier.01=at.gv.egiz.pdfas.sigs.pades.PAdESVerifier -#default.verifier.02=at.gv.egiz.pdfas.sigs.pkcs7detached.PKCS7DetachedVerifier \ No newline at end of file +#default.verifier.02=at.gv.egiz.pdfas.sigs.pkcs7detached.PKCS7DetachedVerifier + +#Enable background color detection +#sigblock.placement.bgcolor.detection.enabled=true +#sigblock.placement.debug.file=/home/cmaierhofer/temp/debugImg.png \ No newline at end of file diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java index 27ac9e32..14aca130 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java @@ -103,4 +103,10 @@ public interface IConfigurationConstants { * Signature object Prefix */ public static final String SIG_RESERVED_SIZE = "signatureSize"; + + /** + * Visual Signature placement + */ + public static final String BG_COLOR_DETECTION = "sigblock.placement.bgcolor.detection.enabled"; + public static final String SIG_PLACEMENT_DEBUG_OUTPUT = "sigblock.placement.debug.file"; } diff --git a/pdf-as-lib/src/main/resources/config/config.zip b/pdf-as-lib/src/main/resources/config/config.zip index 66f6f72d..37416895 100644 Binary files a/pdf-as-lib/src/main/resources/config/config.zip and b/pdf-as-lib/src/main/resources/config/config.zip differ -- cgit v1.2.3