As you suggest, if there was a way to explicitly set the anchor transform on the PdfWriter, it would solve the problem - I was thinking of post-processing, but your idea is neater.
I would welcome your help with the method, though I can contribute it if you prefer.
Best Regards, Jon
Paulo Soares wrote:
The anchors are always referenced to the page in the default user space independently on what the content or transformation is. It's impossible to keep track of the transformation, there's simply too many places where it can be changed. I can add in PdfWriter a method to apply a transformation to the annotations, you would have to write the transform in two places but the result would be correct.
Best Regards, Paulo Soares
----- Original Message ----- From: "Redstop" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 15, 2003 11:49 Subject: [iText-questions] Anchors ignore concatCTM?
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 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
------------------------------------------------------- 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 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
