Click here to Skip to main content
14,977,910 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I downloaded itext lib to convert html to pdf and I use code from site of itext.
// step 1: creation of a document-object
Document document = new Document(PageSize.A4, 80, 50, 30, 65);
// step 2:
// we create a writer that listens to the document
// and directs a XML-stream to a file
PdfWriter.getInstance(document, new FileStream("Chap0707.pdf", FileMode.Create));
// step 3: we parse the document
HtmlParser.parse(document, "Chap0702.html");

so give me error: Exception of type 'com.lowagie.text.ExceptionConverter' was thrown.

Any help?
Updated 8-May-11 0:39am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900