Eric Summkeller wrote:

> How can I use your idea for the following case?
> 
> Codeexample:
> 
> PdfTemplate template = p_Writer.getDirectContent().createTemplate(10, 10);

Do you have any idea how small 10 x 10 user units are?
Are you really going to try fitting a Phrase in such a small box?

> float fontSize = (float) iFormatElement.GetFontSize();
> float textSize = bf.getWidthPoint(text, fontSize);
> template.beginText();
> template.setColorFill(iFormatElement.GetFontColor());
> template.setFontAndSize(bf, fontSize);
> template.setTextMatrix(0, 0);
> template.showText(text);
> template.endText();
> template.setWidth(textSize);
> template.setHeight(fontSize);
> Image img = Image.getInstance(template);
> img.setRotationDegrees(90);
> cell = new PdfPCell(img);

I recognize the code sample; I remember giving the advice
not to start running before you can walk. Maybe I should
have asked you what you really want instead. Given the
code sample, comparing it with your Phrase question, you
have completely lost me. I don't know where to start
answering.
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to