aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-24 11:47:07 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-24 11:47:42 +0200
commit0a291a645e91294553c3171b9291fbf60ee3fae2 (patch)
treea53865eb7b630f1656d5638ffb1ce29c66b36921 /pdf-as-pdfbox/src/main/java/at/gv/egiz
parentb14be6946454595f9a890e4015622a565ab3caa7 (diff)
downloadpdf-as-4-0a291a645e91294553c3171b9291fbf60ee3fae2.tar.gz
pdf-as-4-0a291a645e91294553c3171b9291fbf60ee3fae2.tar.bz2
pdf-as-4-0a291a645e91294553c3171b9291fbf60ee3fae2.zip
Remove support for Alpha Images
Diffstat (limited to 'pdf-as-pdfbox/src/main/java/at/gv/egiz')
-rw-r--r--pdf-as-pdfbox/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-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFAsVisualSignatureBuilder.java b/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFAsVisualSignatureBuilder.java
index f5776c0a..2b587d72 100644
--- a/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFAsVisualSignatureBuilder.java
+++ b/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFAsVisualSignatureBuilder.java
@@ -596,10 +596,10 @@ public class PDFAsVisualSignatureBuilder extends PDVisibleSigBuilder {
logger.debug("Scaling image to: " + iwidth + " x "
+ iheight);
- if (img.getAlphaRaster() == null
- && img.getColorModel().hasAlpha()) {
+ if (img.getColorModel().hasAlpha()) {
img = ImageUtils.removeAlphaChannel(img);
}
+ //img = ImageUtils.convertRGBAToIndexed(img);
PDXObjectImage pdImage = new PDPixelMap(template, img);