diff options
author | emusic <emina.music@egiz.gv.at> | 2019-11-08 14:13:45 +0100 |
---|---|---|
committer | emusic <emina.music@egiz.gv.at> | 2019-11-08 14:13:45 +0100 |
commit | 79f8912b36d37a25867c52f86bcff13ff75e40a2 (patch) | |
tree | 40c2efdd0ded4750f0727b53f06a5f6eb01dd5b3 /pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings | |
parent | 867b8ec9c1ab329fa5f84d294d39c80a92d2b9d2 (diff) | |
download | pdf-as-4-79f8912b36d37a25867c52f86bcff13ff75e40a2.tar.gz pdf-as-4-79f8912b36d37a25867c52f86bcff13ff75e40a2.tar.bz2 pdf-as-4-79f8912b36d37a25867c52f86bcff13ff75e40a2.zip |
Encoding of special characters
Diffstat (limited to 'pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings')
-rw-r--r-- | pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java | 1 | ||||
-rw-r--r-- | pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java index df1f4682..e1fcb9d0 100644 --- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java +++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java @@ -94,5 +94,6 @@ public interface IProfileConstants { public final static String SIG_PDFA1B_VALID = "SIG_PDFA1B_VALID"; public final static String SIG_PDFA_VALID = "SIG_PDFA_VALID"; public final static String SIG_PDFUA_FORCE = "SIG_PDFUA_FORCE"; + public final static String LATIN1_ENCODING = "latin1_encoding"; } diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java index bb6cca83..a151f12e 100644 --- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java +++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java @@ -238,6 +238,16 @@ public class SignatureProfileSettings implements IProfileConstants { return false; } + + public boolean isLatin1Encoding() { + SignatureProfileEntry entry = profileInformations.get(LATIN1_ENCODING); + if (entry != null) { + String value = entry.getCaption(); + return "true".equals(value); + } + return false; + } + public boolean isPDFA3() { if(this.pdfAVersion != null) { return "3".equals(this.pdfAVersion); |