tags:

views:

33

answers:

2

I generate pdf documents with TCPDF. It's fairly easy to setup and very good for creating pdf files with <10 pages.

I can generate 50 pages long PDF files within the 60 seconds default php timeout and can generate upto 200 pages when the timeout is set to 300 (SET_TIME_LIMIT(300)).

I have also allocated 256 mb memory in the PHP ini.

Is there an alternative to the likes of TCPDF which generate PDF files faster?

+1  A: 

If you have shell access via PHP (shell_exec, system or exec) you can split the PDF creation into junks and merge them together with pdftk. With this possibility, you will never reach the timeout limit. The other possibility is the use XML-FO processor like Apache FOP.

DrDol
I have never used any of them, so I will have to look into it.
abel
A: 

You can try EzPDFlibrary, it's pretty fast, just put their DLL in your server and invoke it.

Sarah