I'm working in twips as my document is mainly vector graphics in twips
so I've set a transform:
cb.concatCTM(0.05f,0,0,0.05f,0,0); // Twips = 1/20 pt
I'm using ColumnText to lay out chunks of text - some of which have
anchors (URI) specified. The font sizes are all multiplied by 20 to
preserve size, despite the scaling.
When I look at the PDF output I'm getting anchors with huge rectangle
values (20x), presumably because of my transform. I guess the values
should be in default coords, but iText doesn't appear to do an inverse
transform on them.
Could anyone confirm my reasoning? I guess I'll have to modify the
anchor writing codes to apply an inverse transform to any rects it
receives (PdfDocument.writeLineToContent looks the right spot). Perhaps
someone has a better idea? I know I could revert to pixels for drawing
text - but even then I don't know if my translation transforms would be
handled properly.
Thanks, Jon
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
|