Re: [iText-questions] PDF file does not generate from byte array

2010-07-13 Thread pa7751
ons@lists.sourceforge.net > *Sent:* Tuesday, July 13, 2010 6:51 AM > *Subject:* [iText-questions] PDF file does not generate from byte array > > Hi > > I have a requirement to generate a pdf file in the file system from a byte > array. The input is an html string. The pdf that is genera

Re: [iText-questions] PDF file does not generate from byte array

2010-07-13 Thread Paulo Soares
Close the doc before file.write(baosPDF.toByteArray()); Paulo - Original Message - From: pa7751 To: itext-questions@lists.sourceforge.net Sent: Tuesday, July 13, 2010 6:51 AM Subject: [iText-questions] PDF file does not generate from byte array Hi I have a

[iText-questions] PDF file does not generate from byte array

2010-07-12 Thread pa7751
Hi I have a requirement to generate a pdf file in the file system from a byte array. The input is an html string. The pdf that is generated is corrupted and acrobat does not open it. Below is my code. Also attached the file. Could anyone please suggest what is it that I am doing wrong: * public*