Bil Corry wrote: > 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).
Your code looks OK on first sight, but to be sure, it would be better if you provide a small standalone example that reproduces the problem. Here you can find an example of how I rotate a ColumnText with 90 degrees: http://1t3xt.info/examples/browse/?page=example&id=337 -- This answer is provided by 1T3XT BVBA ------------------------------------------------------------------------- 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
