Mike Marchywka wrote: > So what exactly does it put into the pdf file? > Something similar to SVG arc description?
Bézier curves. > You would think this would be fast but if is written in java could get slow I > guess. With PdfContentByte, a circle is drawn using one moveTo() and 4 curveTo() operators with the corresponding operands. Something similar happens with other arcs. That's fast. In PdfGraphics2D, everything is done "the Java way". An Arc2D object "arc" is created, and fill(arc) is called. This calls followPath(Shape, FILL); This method uses native Java methods to get "points" from the shape. iText doesn't have any control over the way those points are chosen, iText just translates the points it is fed from Java into moveTo() and curveTo() statements. It's up to the developer to choose which way he prefers: the iText way (fast) or the java.awt.Graphics2D way (slow). It's ironic that a developer who uses the offensive and forbidden word URGENT on this list, deliberately chooses the slow way when there's a fast way ;-) Please don't ever use the word URGENT again, Mihir! -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ 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 Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
