Quote:
|
Originally Posted by putty511
Hello Mr.Suresh,
I need to convert a html table into pdf. But I am unable to do this. I get an error -- a blank pdf file is getting created.There is no content in it,
Can u please help me out in this regard, It is very urgent and hence I would be very thankful for an early reply
|
Hi all
I am using the code below to generate a pdf file from an html file.I dont get any error in this code but the pdf file generated from this is blank/empty.
I hv tried so many times but no help.
Document test =new Document();
try
{
PdfWriter.GetInstance(test, new FileStream(Server.MapPath("test.pdf"), System.IO.FileMode.Create));
HtmlParser.Parse(test, Server.MapPath("test.html"));
}
}
catch (Exception err)
{
Response.Write(err.StackTrace);
Response.Write(err.Message);
}
Response.Redirect("http://localhost/WebRA/test.pdf");
pls help asap.its urgent.
thanx