I am trying to convert a HTML file to a PDF file using Aspose.Pdf. I am using the code you suggested (in forum) to make this conversion. However, the right half of the HTML data is cutoff when converted to PDF. I attached the HTML data (invoice_doc1.txt) I am using and the converted PDF (invoice_doc1.pdf). Also, below is the code I am using for the conversion.
Thanks,
Justin Wittsche
-----------------------------------------------------------------------
Dim docstream as New MemoryStream
Dim pdf As Aspose.Pdf.Generator.Pdf = New Aspose.Pdf.Generator.Pdf()
Dim section As Aspose.Pdf.Generator.Section = pdf.Sections.Add()
Dim r As StreamReader = File.OpenText("C:/temp/invoice_doc1.html")
Dim text2 As Aspose.Pdf.Generator.Text = New Aspose.Pdf.Generator.Text(section, r.ReadToEnd())
text2.IsHtmlTagSupported = True
section.Paragraphs.Add(text2)
pdf.HtmlInfo.ImgUrl = "C:/temp/images"
pdf.Save(docstream)