| By Date: | <-- --> |
| By Thread: | <-- --> |
|
Dear Users, I have transformed my XML and XSL to a StringWriter object
like this // Transformation code StringWriter writer = new StringWriter(); transformer.transform(new StreamSource(xml), new
StreamResult(writer)); String str_with_html_tags
= writer.toString(); The result of the transformation i.e “str_with_html_tags” is then passed to
the PDF generation code. // PDF Generation code PdfWriter.getInstance(document, new
FileOutputStream("filename.pdf")); document.open(); document.add(str_with_html_tags); But as a result when I open the PDF document I could see
text with all HTML tags embedded in it. My Questions.
Note: I am using
HTML in my XSL document. Please ask me if you have any questions. Thanks and regards, Mazhar Shaikh Handy: +91 9860687474 This email may contain confidential or privileged information for the intended recipient(s) and the views expressed in the same are not necessarily the views of Zensar Technologies Ltd. If you are not the intended recipient or have received this e-mail by error, its use is strictly prohibited, please delete the e-mail and notify the sender. Zensar Technologies Ltd. does not accept any liability for virus infected mails. |