|
Ok. So being new to iText, I read all of the postings that I could find regarding generating PDFs from HTML. Basically, I’m trying to implement a printer friendly view as a pdf for one particular dynamic page in a site.
I changed the SAXiTextHandler.handleEndingTags() method as recommended by Naidu Satheesh but still get resulting PDFs will all of the table cells scrunched (to use a technical term) to the right side of the page. Scrubbing the html and replacing all the widths with percentages does help a little but is not practical for my application. Additionally, the parser does not appear to transfer any of the table cell border, alignment, or padding attributes to the iText document.
I’m looking for some guidance in terms of best practices for parsing html with the SAXiTextHandler or perhaps a recommendation for another open source html parser to translate the html into an iText document for pdf generation.
Thanks, Troy
Troy Mutter Gossamer Group Bldg #2, Suite 410 4807 Spicewood Springs Dr. Austin, TX 78749 (512) 342-2600 Fax (512) 342-2612
|
<<image001.gif>>
