非文本内容的 MIME 输出
PHP Manual

PDF

User Contributed Notes

Me at Izzmo dot com 22-Jul-2009 05:42
If you only have PDFLib Lite installed, I would not recommend bothering with this library, as you can really only output text and import an image, and that's about it.  Forget about adding complexities such as color, blocks and other elements.  Switch to an open source library such as FreePDF (http://www.fpdf.org).
deadhorus at gmail dot com 04-May-2009 01:15
If you need to use 'pdf templates' use Apache FOP (XSL-FO parser). You can call it from php by using the exec function or by using a php-java bridge. I am successfully using the exec function...

非文本内容的 MIME 输出
PHP Manual