I tried but it doesn't work (almost for me, jeje).
I don't know what I'm doing wrong.
float columns[] = {0.5f,0.5f};
PdfPTable table = new PdfPTable(columns);
PdfPCell cell = new PdfPCell(new Phrase("1"));
cell.rotate();
table.addCell(cell);
table.addCell("2");
It shows me
________
| 1 | 2 |
--------------
thanks a lot
Gastón Scapusio
From: "Paulo Soares" <[EMAIL PROTECTED]>
To: Gastón Scapusio
<[EMAIL PROTECTED]>,<[email protected]>
Subject: Re: [iText-questions] wrap vertical text in pdfpcell
Date: Fri, 3 Mar 2006 18:52:20 -0000
That's old news. With the latest iText version just set the rotation in
PdfPCell.
----- Original Message ----- From: "Gastón Scapusio"
<[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, March 03, 2006 5:59 PM
Subject: [iText-questions] wrap vertical text in pdfpcell
I know this is a common question, but I can't find the way. Sorry.
How can I wrap vertical text in a pdfcell?
I tried using PdfTemplate-Image.
float columns[] = {0.5f,0.5f}
PdfPTable table = new PdfPTable(columns);
table.setTotalWidth(200);
table.setLockedWidth(true);
PdfTemplate template = writer.getDirectContent().createTemplate(100, 100);
BaseFont bf = BaseFont.createFont("Helvetica", "winansi", false);
String text = "This is the text that I'm trying to wrap";
float size = 16;
template.beginText();
template.setFontAndSize(bf, size);
template.showText(text);
template.endText();
Image img = Image.getInstance(template);
PdfPCell cell = new PdfPCell(img);
table.addCell(cell);
table.addCell("other cell");
Thanks a lot.
Gastón Scapusio
_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger:
http://messenger.latam.msn.com/
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
_________________________________________________________________
Las mejores tiendas, los precios mas bajos, entregas en todo el mundo,
YupiMSN Compras: http://latam.msn.com/compras/
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions