From b1eb4a56149819ea97665b8e15a2d62876794534 Mon Sep 17 00:00:00 2001 From: pdanner Date: Mon, 8 Nov 2010 12:51:28 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@602 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../java/at/knowcenter/wag/egov/egiz/pdf/PDFSignatureObjectIText.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFSignatureObjectIText.java b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFSignatureObjectIText.java index 5c1cddb..94abc17 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFSignatureObjectIText.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFSignatureObjectIText.java @@ -208,6 +208,7 @@ public class PDFSignatureObjectIText implements PDFSignatureObject int align = -1; if (type == Entry.TYPE_VALUE && cellStyle.getValueVAlign() != null) align = ((Integer) alignMap_.get(cellStyle.getValueVAlign())).intValue(); + //Note: to change the default valign of images to those of values, change the if construct below else if (type == Entry.TYPE_IMAGE && cellStyle.getImageVAlign() != null) align = ((Integer) alignMap_.get(cellStyle.getImageVAlign())).intValue(); else if (cellStyle.getVAlign() != null) @@ -218,6 +219,7 @@ public class PDFSignatureObjectIText implements PDFSignatureObject align = -1; if (type == Entry.TYPE_VALUE && cellStyle.getValueHAlign() != null) align = ((Integer) alignMap_.get(cellStyle.getValueHAlign())).intValue(); + //Note: to change the default halign of images to those of values, change the if construct below else if (type == Entry.TYPE_IMAGE && cellStyle.getImageHAlign() != null) align = ((Integer) alignMap_.get(cellStyle.getImageHAlign())).intValue(); else if (cellStyle.getHAlign() != null) -- cgit v1.2.3