Use a ByteArrayInputStream.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Achhar Singh (Patni - GE GDC) [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, October 09, 2003 7:29
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] Generating PDF from StringBuffer
> Importance:   High
> 
> Hi,
> 
> I have just started exploring itext for generating PDF from html file. I
> tried using a servlet and itext to generate pdf from an html page stored
> on
> server and displaying it in browser, which worked.
> 
> In my case there is a method in java file which returns me a StringBuffer
> containing the HTML code, which I want to convert to pdf.
> 
> One option is to create a temporary HTML file on server and dump the
> StringBuffer in it and then convert it to PDF. But this will involve lot
> of
> I/O operations(file writing), which I don't want to do.
> 
> What I want to know is there any way by which I can generate pdf, using
> the
> StringBuffer containing the HTML code?
> 
> Would appreciate an early solution/sample code to do this.
> 
> Thanks in advance.
> 
> Regards,
> Achhar Singh
> ----- 9 October 2003 11:42 AM ------
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to