Pablo wrote:
> I downloaded iText-5.0.2.jar and tried to run the first example in iText in
> Action 2006 edition containing :
>
> PdfWriter.getInstance(document, new FileOutputStream("HelloWorld.pdf"));
> HtmlWriter.getInstance(document, new FileOutputStream("HelloWorld.htm"));
>
> document.open();
>
> I received a compilation error cause HtmlWriter can not be found, the needed
> import seems to be com.itextpdf.text.html.HtmlWriter but there is not such
> thing, is it?
HtmlWriter and RtfWriter(2) have been removed from iText.
They are no longer supported.
> The examples in the book uses the com.lowagie.text.html.HtmlWriter import ,
> where can I find the "com.lowagie" lib ? The link in the book send me to
> download iText-5.0.2.jar only.
The com.lowagie classes are deprecated, and so are the examples of the
first book (as there is now a second edition of "iText in Action"
available in MEAP).
> Can you help me?
> I am interested in simple paralel creation of html together with pdf.
You can still download the old iText version from SourceForge, but
you'll be very disappointed when you see the poor quality of the HTML
that is generated.
iText is about PDF, not about HTML and other formats.
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
iText-questions mailing list
[email protected]
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/