From 7040bdb8ace897f0cfdd43bd0304f3487b27df22 Mon Sep 17 00:00:00 2001 From: pdanner Date: Tue, 23 Nov 2010 14:11:36 +0000 Subject: Fix for not exactly vertically centered text git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@610 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../java/at/knowcenter/wag/egov/egiz/pdf/PDFSignatureObjectIText.java | 3 +++ 1 file changed, 3 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 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()); -- cgit v1.2.3