Hi,
I am not able to convert the attached HTML to PDF using Aspose.PDF. The converted PDF file is not retaining any formatting specified in the HTML tag.
To rule out issues with a malformed HTML I used the same file in several other online conversion tool and the file converted correctly to PDF without any formatting issues.
Here is the code(using Aspose.PDF version 7.1):
Dim strHTML AsString = File.ReadAllText("C:\testingRPT.html")Dim oPDF As Pdf.Generator.Pdf = New Pdf.Generator.PdfDim license As Aspose.Pdf.License = New Aspose.Pdf.Licenselicense.SetLicense(
"Aspose.Total.lic")oPDF.BindHTML(strHTML)
oPDF.IsLandscape =
TrueoPDF.Save(
"C:\ddxxhh.pdf")Any help is truely appreciated.
Sid
Note: The file extension is renamed from .html to .txt to allow for uploading to the forum.