Hello everyone: I'm completely new to iTextSharp and I'm trying to convert some html files to pdf. The problem is that almost every single example that I found is referencing classes from past iText releases. I would like to use the new release but I simply cannot find documentation and/or examples for this new release. BTW I'm stuck with my simple test:
---- CODE ---- // Create the document iTextSharp.text.Document idocument = new iTextSharp.text.Document(iTextSharp.text.PageSize.A4); // Create the output file iTextSharp.text.pdf.PdfWriter.GetInstance(idocument, new FileStream("d:\\watch\\iTextSharpTest.pdf", FileMode.Create)); try { // Open the document idocument.Open(); // Parse the document iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList(new StreamReader(FileToParse), null); // HERE is the problem, I don't know what to do next } catch (Exception ex) { // TODO: Deal with the exception } finally { if (idocument.IsOpen()) idocument.Close(); } ---- END CODE ---- Thank you for your help.
------------------------------------------------------------------------------
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/