[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Advice Mixing PHP and Lua?
- From: David Given <dg@...>
- Date: Tue, 27 Oct 2009 21:54:02 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Bertrand Mansion wrote:
> FPDF is very popular in the PHP world because it is free and easy to
> use. Its pseudo OO code is ugly though.
> But TCPDF, which is even more useful is even uglier, probably the
> ugliest code I have seen in PHP ever.
On the gripping hand, don't forget that you can also write out an XSL-FO
file, which is dead easy because it's just simple XML, then run the
result through fop and generate PDF from that.
This has the advantage in that you can trivially define all your style
in off-line XSLT documents so that all your Lua code needs to concern
itself with is the actual content... but it has the disadvantage in that
all your style is stored in off-line XSLT documents.
┌─── ｄｇ＠ｃｏｗｌａｒｋ．ｃｏｍ ───── http://www.cowlark.com ─────
│ "There is nothing in the world so dangerous --- and I mean *nothing*
│ --- as a children's story that happens to be true." --- Master Li Kao,
│ _The Bridge of Birds_
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----