aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-common/src/main/java
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-04-24 08:46:48 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-04-24 08:46:48 +0200
commit233f87475bac6b505dcd19adaef4598803cafa29 (patch)
tree24bd34f44319c6b80fce31c71a5c6b4a2d24d552 /pdf-as-common/src/main/java
parentd6f9c177ac92110c26cd170633107940badf1d20 (diff)
downloadpdf-as-4-233f87475bac6b505dcd19adaef4598803cafa29.tar.gz
pdf-as-4-233f87475bac6b505dcd19adaef4598803cafa29.tar.bz2
pdf-as-4-233f87475bac6b505dcd19adaef4598803cafa29.zip
Always remove the alpha channel when signing PDF-A1/b dokuments from signatureimage
Diffstat (limited to 'pdf-as-common/src/main/java')
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/ImageUtils.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/ImageUtils.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/ImageUtils.java
index ab087f2c..39ebd3e0 100644
--- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/ImageUtils.java
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/ImageUtils.java
@@ -57,7 +57,7 @@ public class ImageUtils {
.getLogger(ImageUtils.class);
public static BufferedImage removeAlphaChannel(BufferedImage src) {
- if (src.getColorModel().hasAlpha()) {
+ //if (src.getColorModel().hasAlpha()) {
BufferedImage image = new BufferedImage(src.getWidth(),
src.getHeight(), BufferedImage.TYPE_INT_RGB);
Graphics2D g = image.createGraphics();
@@ -65,8 +65,8 @@ public class ImageUtils {
g.drawImage(src, 0, 0, null);
g.dispose();
return image;
- }
- return src;
+ //}
+ //return src;
/*
* BufferedImage rgbImage = new BufferedImage(src.getWidth(),
* src.getHeight(), BufferedImage.TYPE_3BYTE_BGR); for (int x = 0; x <