wkhtmltopdf is a simple shell utility to convert html to pdf using the webkit rendering engine, and qt.
pdf2swf(part of SWFTOOLS) is A PDF to SWF Converter. Generates one frame per page. Enables you to have fully formatted text, including tables, formulas, graphics etc. inside your Flash Movie. It’s based on the xpdf.
Both of them are open source and can works on multi-platform(cross platform), so If we want to convert a html file or webpage to SWF, we can use wkhtmltopdf to convert html(webpage) to PDF, then use pdf2swf to convert pdf to swf.
- SWFTOOLS home page, http://www.swftools.org/
- wkthmltopdf home page,http://code.google.com/p/wkhtmltopdf/
P.S. A simple routine and example(result),
wkhtmltopdf "http://www.grzmobile.com/blog/2009/11/13/integrating-lua-into-an-iphone-app.html?printerFriendly=true" "Integrating Lua into an iPhone App.pdf"
pdf2swf "Integrating Lua into an iPhone App.pdf" "Integrating Lua into an iPhone App.swf"