aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox-2/src/main/java/at
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-11-23 14:57:41 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-11-23 14:57:41 +0100
commit6f198db080646dc7fd9708fe30cbe7ed9565909d (patch)
tree717ef92df876cd9d02c0626b8375a543a048a047 /pdf-as-pdfbox-2/src/main/java/at
parent320b0c5f01224a9be4a9ea8d7d90f1828e8285e1 (diff)
downloadpdf-as-4-6f198db080646dc7fd9708fe30cbe7ed9565909d.tar.gz
pdf-as-4-6f198db080646dc7fd9708fe30cbe7ed9565909d.tar.bz2
pdf-as-4-6f198db080646dc7fd9708fe30cbe7ed9565909d.zip
enforce ISO encoding for stream content of appearence dictionary
Diffstat (limited to 'pdf-as-pdfbox-2/src/main/java/at')
-rw-r--r--pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox2/PDFAsVisualSignatureBuilder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox2/PDFAsVisualSignatureBuilder.java b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox2/PDFAsVisualSignatureBuilder.java
index 30487ead..a33a46e7 100644
--- a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox2/PDFAsVisualSignatureBuilder.java
+++ b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox2/PDFAsVisualSignatureBuilder.java
@@ -326,7 +326,8 @@ public class PDFAsVisualSignatureBuilder extends PDVisibleSigBuilder implements
// String innerFormComment = "q 1 0 0 1 0 0 cm /" + imageObjectName +
// " Do Q\n";
- String innerFormComment = IOUtils.toString(getStructure().getInnerFormStream().toByteArray());
+
+ String innerFormComment = new String(getStructure().getInnerFormStream().toByteArray(), "ISO-8859-1");
// .getInputStreamAsString();//TODO: pdfbox2 - get the string from the stream