Hello World page is converting to blank PDF - Please help!

Hello. Using the code below I cannot get a simple “Hello World” page to
convert to PDF using .PDF. The answer to my problem is likely very
trivial, but I’m under a tight-deadline and have other commitments that
need to be addressed, so I don’t have too much time to evaluate this
product before we commit to purchase. Can someone help?



HTML









Hello World!









ASPX Code Behind



private void Page_Load(object sender, System.EventArgs e)

{

if (!this.IsPostBack)

{

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



try

{

    using (MemoryStream htmlStream =

new MemoryStream())

{

        StreamWriter

htmlWriter = new StreamWriter(htmlStream);

        HtmlTextWriter

htmlTextWriter = new HtmlTextWriter(htmlWriter);


this.Render(htmlTextWriter);


htmlTextWriter.Flush();

htmlWriter.Flush();

htmlStream.Position = 0;


pdf.BindHTML(htmlStream);


pdf.Save(“HelloWorld”, Aspose.Pdf.SaveType.OpenInAcrobat,
this.Response);


htmlStream.Close();

htmlWriter.Close();

htmlTextWriter.Close();


        Response.End();<br>
                }<br>
            }<br>
            catch(Exception exc)<br>
            {<br>
                Response.Write(exc.Message);<br>
            }<br>
        }<br>
    }</font><span><br>

Hi,

Thank you for considering Aspose.

Only simple HTML tags are supported in the current version of Aspose.Pdf. Please refer to Convert HTML to PDF in .NET|Aspose.PDF for .NET. The form is not supported. We are now working to support more HTML tags.

We will support more HTML tags including form tags in the coming version.