PDF only supports a few line cap styles: "Butt cap" the line ends squarely at the endpoint. "Round cap" the line ends with a half-circle with a diameter equal to the line width "Projecting square cap" similar to "butt cap", only the line projects half the line width past the end point.
That's it. If you want anything beyond that you must draw it yourself. That's an interesting problem, geometrically speaking. Given some set of points/stroke/fill, draw it on the end of a line in the correct direction/thickness... Hey... Graphics2D... nope. It has the same line caps, and I don't see a way to make a custom end cap there either. There's got to be some open source project that implements this out there somewhere. SVG maybe? Batik... NOPE. Grr. Sorry, looks like you're on your own. --Mark Storer Senior Software Engineer Cardiff.com #include <disclaimer> typedef std::Disclaimer<Cardiff> DisCard; > -----Original Message----- > From: [email protected] [mailto:[email protected]] > Sent: Tuesday, October 20, 2009 6:22 AM > To: [email protected] > Subject: [iText-questions] Line with Arrow (Line Cap) > > > Hello! > > I'm trying to draw some shapes to a PdfTemplate. I have to > draw a line which should end with a filled triangle arrow. > Searching this list and requesting google doesn't deliver a > solution by now. > > So: How to draw a line with an arrow as line cap? > > Thanks in advance > Alex Maier > -- > Neu: GMX DSL bis 50.000 kBit/s und 200,- Euro Startguthaben! > http://portal.gmx.net/de/go/dsl02 > > -------------------------------------------------------------- > ---------------- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. > Jumpstart your > developing skills, take BlackBerry mobile applications to > market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > 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/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ 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/
