I have sample HTML file, When i tried to print the html data into PDF file using Aspose library, I am geeting unwanted line in PDF file. But when i have opened the HTML file in browser, there is no unwanted line. I am using below code to print the HTML data in PDF.
License AsposeLicense = new License();
AsposeLicense.Embedded = true;
// Read the contents of HTML file into StreamReader object
StreamReader r = File.OpenText(@"C:\Periyasamy\UnWantedLineIssue.html");
string basePath = "http://csevcgscogdev4/GEMSUI/";
HtmlLoadOptions options = new HtmlLoadOptions();
string htmlText = r.ReadToEnd();
// instantiate Text object with HTML file contents
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(htmlText)), options);
I am attaching both html and pdf output file in this forms.