Hi Searched the archives, and couldn't find a similar question, so...
I have a java app which currently exports graphics2d objects rendered using the excellent JUNG visualisaiton library as EPS files (amongst other formats), using a slightly-hacked version of the FreeHEP vector graphics tools. For more flexibility, I intend add, using if possible iText, the option to export PDF reports -- these will include the graphics2d objects which I currently export as above, plus some extra layout, text and tables. That should not be too difficult, as I understand it. BUT there's an extra requirement. The hacks I've made to FreeHEP's EPS export add in pdfmark data, so that any string in the graphics2d object, which appears to be a URL, is pdfmarked with a link to open that address when clicked. i.e. if a string in the graphics2d contained http:// www.bigshinything.com, then in the rendered EPS, it would include a pdfmark wrapped around rendering of that string to goto that address when clicked. This works really well -- people can edit the EPS files in Illustrator, convert to PDF etc, and the pdfmark links are preserved. What I need, when I add in the iText option, is to replicate this behaviour. So I need to be able to assemble a PDF document from an existing graphcis2d and other elements, but on the way through, parse the graphics2d and (somehow) add in pdfmarks for any URLs in strings in that object. I'm sure that's possible, but where and how -- callbacks? overriding methods?! All help appreciated. I haven't written a line of iText-related code yet, but the structure for the rest seems easy -- this is the tricky bit... thanks d -- Ku24 Limited: Technology for Creative Business e: [EMAIL PROTECTED] | m: 07947 817 564 w: http://www.ku24.com | t: 020 7193 0249 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
