Dears,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
I am using Aspose. PDF for .net version 6.6.0, and I am trying to create a PDF report from HTML file, and I am facing the following issues:
- Arabic text is not rendered in the report.
- A lot of style issues.
The html text files is attached, also you can find below the code that are used to generate the PDF file.
Your help is highly appreciated.
Dim strContents As String
Dim objReader As System.IO.StreamReader
objReader = New System.IO.StreamReader("D:\RequestforQuotation.txt")
strContents = objReader.ReadToEnd()
objReader.Close()
Dim pdf As Aspose.Pdf.Generator.Pdf = New Aspose.Pdf.Generator.Pdf()
Dim section As Aspose.Pdf.Generator.Section = pdf.Sections.Add()
Dim HTMLText As Aspose.Pdf.Generator.Text = New Aspose.Pdf.Generator.Text(section, strContents)
HTMLText.IsHtmlTagSupported = True
section.Paragraphs.Add(HTMLText)
pdf.Save("D:\Projects\Reports\Sample.pdf")