Archive for November 17th, 2010

Convert html to SWF with Free tools wkhtmltopdf and pdf2swf

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.

reference,

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"

Be Sociable, Share!

Developing iPad and iPhone Apps with Lua

On WWDC 2010 we noticed some changes to Section 3.3.2 of Apple’s licensing agreement — specifically the part that deals deals with the use of cross-compilers. The changes this time around may not make things all better, but it could make things slightly better for some developers. Matt Drance had this to say about the change to Section 3.2.2:

“While explicit approval from Apple is still required, these new terms seem to acknowledge that there’s a difference between an app that happens to have non-compiled code, and a meta-platform. It’s a step that should allow for many new possibilities.”

And because of the features of Lua,

Lua is a powerful, fast, lightweight, embeddable scripting language.
Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

,
then one guy wrote two tutorials, Integrating Lua into an iPhone App and Remote Debugging for Lua on the iPhone.
If you are not familiar with Xcode but familiar with Lua, maybe you can try iLuaBox.

P.S.

iLuaBox is an iOS application that hosts the Lua scripting environment. iLuaBox provides an intuitive environment to learn, write, and test scripts written in the Lua Programming Language. This is not a stripped down version of Lua, but rather a full-featured implementation that is optimized for iOS and the iPad hardware platform.

Be Sociable, Share!