Hi.
I�m building a table with a vertical header using a template that is placed
vertically in a cell.
The template is generated through an array of Chunk. One chunk should have
text rise = 2.
But when I added it to the template it doesn�t appear rise. I believe that
it appends because I add chunk content to the template.
Here is some parts of the code:
Chunk[] chunks = {new Chunk("�rea bruta de"),
new Chunk("constru��o (m"),
new Chunk("2").setTextRise(2f),
new Chunk(")")};
template = writer.getDirectContent().createTemplate(40f, 7f);
Paragraph p = getSpecialLine (template, chunks, 5f, -15f);
/*
* getSpecialLine
*/
public static Paragraph getSpecialLine (PdfTemplate template, Chunk[]
inchunks, float offsetX, float offsetY) throws Exception {
template.beginText();
template.moveText(0,startY);
for (int i = 0; i < inchunks.length; i++) {
Chunk inchunk = (Chunk) inchunks[i];
template.showText(inchunk.content());
template.moveText(0, -leading);
}
template.endText();
template.setWidth(width);
template.setHeight(height);
Image img = Image.getInstance(template);
img.setRotationDegrees(90);
img.setAlignment(Element.ALIGN_CENTER);
return new Paragraph(new Chunk(img, offsetX, offsetY));
}
How can I rise some part of the text?
Thanks.
Susana.
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions