Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] read PDF write HTML

KJ Borges

2005-09-23

Replies:

(now with subject)

Hello,

I'd like to read a PDF file and write it as a HTML file. Is it possible to
do it with itext?

I was trying to do something like that using the code below but it looks
like that from a PdfReader I can't retrieve the read document.

PdfDocument document = new PdfDocument();
PdfReader pdf = new PdfReader("HelloWorldPdf.pdf");
document = pdf.getDocument(); //i wish I could do something like that
HtmlWriter html = HtmlWriter.getInstance(document,
new FileOutputStream("HelloWorldHtml.html"));

Is there a way to do something similar to that via the API?

Thanks,
Kenety




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.