Quoting Ross Cohen <[EMAIL PROTECTED]>: > I have a problem. I want to open a pdf document, write some > stuff to it manually, then parse the body of an already-prepared html > file in, and then write more stuff manually. > > > Unfortunately whenever I use the parser classes, they > seem to close the pdf document when they're done.
When the end-tag of the root-element (in your case probably </html>) is reached, the close-method is invoked. You can avoid this, by writing your own handler, see http://www.lowagie.com/iText/examples/Chap1201.java for an example. The endElement-method of SAXiTextHandler is overridden: public void endElement(String uri, String lname, String name) { if (isDocumentRoot(name)) { return; } else { handleEndingTags(name); } } Bruno ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions