From e1b8dfe23f6d906f5f5df47cdefcf4fb0f765d55 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Thu, 4 Aug 2022 14:01:36 +0200 Subject: disable signature lang/note for non-text profiles --- .../src/main/java/at/asit/pdfover/commons/Profile.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pdf-over-commons/src') diff --git a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java index f06d489d..d26c8877 100644 --- a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java +++ b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java @@ -39,4 +39,15 @@ public enum Profile { } } + public boolean hasText() { + return ((this == SIGNATURBLOCK_SMALL) || (this == AMTSSIGNATURBLOCK)); + } + + public boolean hasLogo() { + return (this != INVISIBLE); + } + + public boolean isVisibleSignature() { + return (this != INVISIBLE); + } } -- cgit v1.2.3