summaryrefslogtreecommitdiff
path: root/pdf-over-commons
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-04 14:01:36 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-04 14:01:36 +0200
commite1b8dfe23f6d906f5f5df47cdefcf4fb0f765d55 (patch)
tree5c2fc9c066ea1fa09258e865d20dbeee7908f5a2 /pdf-over-commons
parent671d24d8e638b073b3aa5da00526978af2ebd06b (diff)
downloadpdf-over-e1b8dfe23f6d906f5f5df47cdefcf4fb0f765d55.tar.gz
pdf-over-e1b8dfe23f6d906f5f5df47cdefcf4fb0f765d55.tar.bz2
pdf-over-e1b8dfe23f6d906f5f5df47cdefcf4fb0f765d55.zip
disable signature lang/note for non-text profiles
Diffstat (limited to 'pdf-over-commons')
-rw-r--r--pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java11
1 files changed, 11 insertions, 0 deletions
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);
+ }
}