Summkeller Eric wrote:
> I changed the size to 50, 50 using 
> PdfTemplate tpl = cb.createTemplate(50, 50);
> but nothing changes. The text is still not displayed.
> If I select the text from above to below in Acrobat Reader I see something 
> like an empty placeholder but this was still there before.
> Again many thanks for your help.

I have looked at your code sample
and I don't understand what you are doing in onCloseDocument.
For instance: you limit the height of the template to the font size.
Why? I think you assume that this size returns the height of the String,
but that assumption is wrong. You are also using methods like
setTextMatrix() and showText(). Why? Is your PDF-FU that mighty?
Why not use showTextAligned()?
Please try some examples from the tutorial first. When I look at your 
code I get the impression that you're somebody who tries running before 
having learned to walk.
br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to