Issue with converting Html to pdf

Hi,

I am usin BindHtml() method to generate pdf doc.

I have the entire html in a string.I am converting the string to stream and passing it thestream to BindHtml() method.

The code i wrote is:

string strHtml="

  UPMC HEALTH PLAN

                               ARICEPT/NAMENDA

                   PRIOR AUTHORIZATION FORM

"

Stream s = new MemoryStream(System.Text.ASCIIEncoding.Default.GetBytes(strHtml));

objPdf.BindHTML(s);

objPdf.Save(@"c:\CCForm.pdf");

While the code does not give any error but it generates a pdf which is empty

Please help asap.

Thanks

Hi,

I have used the following code this too produces blank pdf:

protected void Button1_Click(object sender, EventArgs e)

{

Aspose.Pdf.Pdf objPdf = new Aspose.Pdf.Pdf();

objPdf.BindHTML(@"c:\sss.html");

objPdf.Save(@"c:\CCForm.pdf");

}

What must be the reason.

Please help.

Thanks.

This problem is caused by the known limit of Html2PDF.

Currently HTML containing CSS is not supported by Aspose.PDF.