I'd like to use iText to create something less than a complete HTML document...... ie, an HTML fragment that can be inserted into an enclosing HTML document. I have looked at the 1.1 codebase, and this functionality is not present.
My overall goal is to use iText to create reports that can be formatted in either PDF or HTML (I've used JasperReports, but it doesn't work for all our reporting cases). In the case of PDF, the report should render a complete PDF document. But in the case of HTML, the report should render within the existing look and feel of the site's web page.... in other words, the HTML report should occupy only part of the page. In HTML, we would continue to have our top nav, left nav, and the remaining space would be allocated to the HTML report. The problem is that iText's HtmlWriter insists on emitting the <html><head></head><body></body></html> tags. And it's not a good idea to have these inserted into the middle of another HTML document. There are several solutions I have considered: 1. frames (or iframes) 2. EMBED, with type="text/html" 3. filter out everything before <body> and after </body>, inclusive 4. modify HtmlWriter to skip the printing of everything before <body> and after </body>, inclusive Is this a problem anyone else has successfully tackled? Does it seem to be a useful feature to add to HtmlWriter (writing only an HTML fragment)? Thanks, -eric This message and any attachment is intended for use only by the individual or entity to which the email is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any retention, dissemination, distribution or copying of this communication or any attachment is strictly prohibited. If you have received this communication in error, please delete the e-mail and any attachment and notify Everstream, Inc. immediately by telephone at 440-498-8899. ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
