[EMAIL PROTECTED] wrote: > Hi > > I'm using a PdfPatternPainter to add a repeated image. When using this code > > cb.setPatternFill(imgPattern); > cb.setLineWidth(0.0f); > cb.rectangle(...); > cb.fillStroke(); > > the pattern looks correct. However, it is surrounded by a visible border. > Since I already added setLineWidth(0.0f) I was wondering if i can do something > else to avoid the border around the rectangle that contains the pattern.
Use cb.fill(); instead of cb.fillStroke(); Line width 0 has a special meaning (as explained in the PDF Reference and in "iText in Action"). -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------- 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
