문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top