aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-11-23 14:11:36 +0000
committerpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-11-23 14:11:36 +0000
commit7040bdb8ace897f0cfdd43bd0304f3487b27df22 (patch)
tree6d99c13e6eecd2ffbb3b7a392b67915db0c84b06
parent4df58cd6e2d3880c5bf66dad3c3f25a105dc2e2e (diff)
downloadpdf-as-3-7040bdb8ace897f0cfdd43bd0304f3487b27df22.tar.gz
pdf-as-3-7040bdb8ace897f0cfdd43bd0304f3487b27df22.tar.bz2
pdf-as-3-7040bdb8ace897f0cfdd43bd0304f3487b27df22.zip
Fix for not exactly vertically centered textREL-3.1.1@923
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@610 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFSignatureObjectIText.java3
1 files changed, 3 insertions, 0 deletions
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 48acb87..5446af1 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
@@ -197,6 +197,9 @@ public class PDFSignatureObjectIText implements PDFSignatureObject
pdfCell.setBackgroundColor(cellStyle.getBgColor());
}
pdfCell.setPadding(cellStyle.getPadding());
+ //exthex - fix for not exactly vertically centered text
+ pdfCell.setUseAscender(true);
+
if (cellStyle.getBorder() > 0)
{
pdfCell.setBorderWidth(cellStyle.getBorder());