Hey all,

I'm using annotations to add hyperlinks to a document. I apply a scale 
transformation to the writer and draw the contents (a table with some 
links in it). The problem is that the clickable annotation regions don't 
seem to respect the transformation matrix.

I've confirmed this by doing the following in a PdfPCellEvent:

     Annotation a = new Annotation(llx, lly, urx, ury, value);
     writer.getDirectContent().getPdfDocument().add(a);

     rect = new Rectangle(llx, lly, urx, ury);
     rect.setBackgroundColor(new Color(0xff0000));

     canvases[PdfPTable.TEXTCANVAS].rectangle(rect);

The rectangle draws in the correct location, but the annotation region 
is off somewhere else on the page.

Is this a known bug? Is there a way of making annotations respect the 
transformation matrix?

Thanks,

Sam Gibson

-------------------------------------------------------------------------
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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to