I am using iText for .NET for converting HTML to PDF.
I'm using HtmlParser to convert an HTML page to PDF, but the problem is that Htmlparser only seems to convert the first line to pdf
all other lines from the HTML file are not converted to PDF.
Here is the code
Document document = new Document();
final = new Document();
StreamWriter writer = new StreamWriter("fck.txt");
writer.WriteLine(FCKeditor1.Value);
writer.Close();
// Changing the extension of txt file to html file
File.Move("C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\fck.txt", "C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\fck.html");
PdfWriter writer1 = PdfWriter.GetInstance(final, new FileStream("final1.pdf", FileMode.Create));
final.Open();
HtmlParser.Parse(final, "fck.html");
final.Close();
File.Delete("C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\fck.html");
So Please please help me Any thank u in advance for helping