[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Advice Mixing PHP and Lua?
- From: David Given <dg@...>
- Date: Tue, 27 Oct 2009 21:54:02 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.learn-xsl-fo-tutorial.com/
http://xmlgraphics.apache.org/fop/
- --
┌─── dg@cowlark.com ───── 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/
iD8DBQFK52v3f9E0noFvlzgRAlkCAJ0Zll2s9KRLpxijDQYb1MrXWszq0wCfZ7U4
c56DR1CXD2Cn+wPPYSTW9hs=
=9tKG
-----END PGP SIGNATURE-----