aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/impl/signator/textual/TextualSignator_1_0_0.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/impl/signator/textual/TextualSignator_1_0_0.java b/src/main/java/at/gv/egiz/pdfas/impl/signator/textual/TextualSignator_1_0_0.java
index 15c18a1..ed673ac 100644
--- a/src/main/java/at/gv/egiz/pdfas/impl/signator/textual/TextualSignator_1_0_0.java
+++ b/src/main/java/at/gv/egiz/pdfas/impl/signator/textual/TextualSignator_1_0_0.java
@@ -105,7 +105,7 @@ public class TextualSignator_1_0_0 implements Signator
tsi.profile = profile;
tsi.pos = pos;
- String document_text = PdfAS.extractNormalizedTextTextual(pdfDataSource);
+ String document_text = PdfAS.extractNormalizedTextTextual(pdfDataSource, this.getEncoding());
tsi.setNonTextualObjects(ObjectExtractor.extractNonTextInfo(pdfDataSource));
// logger_.debug("signed_text = " + document_text);
@@ -162,4 +162,9 @@ public class TextualSignator_1_0_0 implements Signator
// }
}
+ public String getEncoding() {
+ // old signatures used this encoding implicit most of the time (windows default)
+ return "cp1252";
+ }
+
}