Quoting Graham Leggett <[EMAIL PROTECTED]>: > Hi all, > > I have an application that uses iText to render a PDF report using the > PdfWriter object. The people who receive the report need to receive it > in both a hardcopy form (PDF), and an electronic form to be parsed by > their systems. To do this, I get iText to output XML using XmlWriter. > > I would however like to make it easier for the people who receive the > report to parse the XML file by "tagging" key XML tags, identifying > which tags indicate data that they must take note of, and which tags can > safely be ignored. > > Is this possible with iText? I could not seem to find a > Rectangle.setId() or similar method anywhere that could be used to do > this - is this kind of thing hard to do?
If you don't use 'Advanced iText' (i.e. PdfContentByte stuff), it's not hard to do, it just takes some time to do it. Take a look at the code of XmlWriter and use it as inspiration to write your own MyXmlWriter class (with your own tags). If MyXmlWriter extends DocWriter. br, Bruno ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions