aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-06 10:00:25 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-06 10:00:25 +0200
commitbb34e8aa6d4efd07a951cc519fdee68a6d787519 (patch)
tree634efba5190c0a892049cd89ea313648d8a66474 /pdf-as-lib/src/main
parente5a0d81eb8a11f497551be22e4f16a53a42c3cb4 (diff)
downloadpdf-as-4-bb34e8aa6d4efd07a951cc519fdee68a6d787519.tar.gz
pdf-as-4-bb34e8aa6d4efd07a951cc519fdee68a6d787519.tar.bz2
pdf-as-4-bb34e8aa6d4efd07a951cc519fdee68a6d787519.zip
removed jpeg kompression from signature logo #40
Diffstat (limited to 'pdf-as-lib/src/main')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFAsVisualSignatureBuilder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFAsVisualSignatureBuilder.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFAsVisualSignatureBuilder.java
index 6186b088..e8d1f4c0 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFAsVisualSignatureBuilder.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFAsVisualSignatureBuilder.java
@@ -51,13 +51,13 @@ import org.apache.pdfbox.pdmodel.edit.PDPageContentStream;
import org.apache.pdfbox.pdmodel.font.PDFont;
import org.apache.pdfbox.pdmodel.font.PDType1Font;
import org.apache.pdfbox.pdmodel.graphics.xobject.PDJpeg;
+import org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap;
import org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectForm;
import org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage;
import org.apache.pdfbox.pdmodel.interactive.annotation.PDAppearanceDictionary;
import org.apache.pdfbox.pdmodel.interactive.annotation.PDAppearanceStream;
import org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature;
import org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible.PDVisibleSigBuilder;
-import org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible.PDVisibleSignDesigner;
import org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm;
import org.apache.pdfbox.pdmodel.interactive.form.PDField;
import org.apache.pdfbox.pdmodel.interactive.form.PDSignatureField;
@@ -618,7 +618,7 @@ public class PDFAsVisualSignatureBuilder extends PDVisibleSigBuilder {
img = ImageUtils.removeAlphaChannel(img);
}
- PDXObjectImage pdImage = new PDJpeg(template, img);
+ PDXObjectImage pdImage = new PDPixelMap(template, img);
ImageObject image = new ImageObject(pdImage, iwidth,
iheight);