________________________________
> Date: Wed, 26 May 2010 18:30:42 +0300
> From: dhryvas...@serena.com
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Question about converting HTML to PDF
>
> Hi all -
>
> I am using iText and I try to convert HTML to PDF using this library. It
> works well for me with simple HTML.
> The question that I have is: does iText support converting HTML which
> includes css references and JavaScript to PDF? If I have JavaScript embedded
> in my HTML will it work in the generated PDF? Is it a way to do this?
There is a webkit app that does this,
http://code.google.com/p/wkhtmltopdf/
I guess I would ask a related question that seems to be answered by
the above app, " has anyone considered
using itext or other tools with browsers such as webkit?" Presumably
webkit, as an example, knows how to render ( by definition almost it
is "right" as usually people want to copy what they see on [ some ] browser
even if there is not standard that captures quirks and bugs LOL ).
Apparently webkit generates things like DOM's and structures for drawing,
you could consider several ways to interface or "mix and match" tools.
For example, some JNI interface between your java app and a modified
webkit built OR an "intermediate language such that this would do something
useful:
webkit_tool -dump_render_tree http://xxx.com | java -jar my_itext_app>
pdf_of_web.pdf
I will admit right now that much like "grep the source code" was my prior
answer for everything, webkit ( an opensource browser) seems like the answer
to everything that involves a browser.
>
>
> Thanks in advance,
> Denys
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
------------------------------------------------------------------------------
_______________________________________________
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/