Thanks, but which filename should I use to tell pdfbox to use the font from the
delivered lib?
Original-Nachricht
> Datum: Thu, 06 Dec 2012 18:35:58 +0100
> Von: Andreas Lehmkuehler
> An: dev@pdfbox.apache.org
> CC: Gerrit Lober
> Betreff: R
Am 06.12.2012 08:22, schrieb Gerrit Lober:
Dear Andreas, thanks, I think you answered my question and it is a problem with
helvetica font, that every letter has the same width.
Not every letter but the figures
Therefore it seem when I try to center the textposition with
float textPosition =
Dear Andreas, thanks, I think you answered my question and it is a problem with
helvetica font, that every letter has the same width. Therefore it seem when I
try to center the textposition with
float textPosition = pageCenter.x - (font.getWidth("12")/2);
that my text is not centered because th
Hi,
Am 05.12.2012 14:49, schrieb Gerrit Lober:
Dear all,
I've the following problem with PDFbox. I try to paint a rectangle with
PDPageContentStream and then put a figure in the center of this rectangle.
Therefore I try to calculate the width of the text. The Method getStringWidth
returns ev
Hi Gerrit,
which version of PDFBox are you using? Could you post a small code snippet to
reproduce the issue? With a quick test I created the numbers do print fine
i.e. they have the same width.
Her my code:
PDDocument doc = new PDDocument();
PDPage page = new PDPage();
Dear all,
I've the following problem with PDFbox. I try to paint a rectangle with
PDPageContentStream and then put a figure in the center of this rectangle.
Therefore I try to calculate the width of the text. The Method getStringWidth
returns everytime the same width for all figures. That means