I'm trying to rotate a ColumnText object by wrapping it in an Image; my code
looks like:
fRotate = 30.0;
fLeft = 100.0;
fTop = 630.0;
PdfTemplate template =
pdfwriter.getDirectContent().createTemplate(fWidth, fHeight);
col = new ColumnText(template);
// do stuff with col
int status = col.go();
Image img = Image.getInstance(template);
img.setRotationDegrees(fRotate);
img.setAbsolutePosition(fLeft, fTop);
myDocument.add(img);
When I view the PDF in Adobe Reader, I can't see the contents of the ColumnText
on the page. When I open the contents of the PDF in a hex editor, indeed the
ColumnText content is in there.
Any ideas where I'm going wrong? I'm using iText v1.4.1 (old, I know).
TIA,
- Bil
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php