Sam Gibson wrote: > 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);
Er... that isn't supposed to work!!! > 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? Let me see: when we're talking about drawing rectangles, we're talking about the Adobe Imaging Model and transformation matrices. When we're talking about annotations, we're talking about the Carousel Object System and no transformation matrix is involved. You're mixing things that shouldn't be mixed. Annotations are not a part of the page content. That's inherent to PDF. (So no: it's NOT a bug!) -- 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 iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php