Fastest PDF generation in PHP?

后端 未结 6 2086
长发绾君心
长发绾君心 2021-01-12 04:18

I\'m attempting to generate some reports dynamically, very simple HTML tables with borders.

I\'ve tried TCPDF and it renders up to 400 rows just fine but anything mo

6条回答
  •  自闭症患者
    2021-01-12 04:33

    Fact Thousands of rows can be handled by the php.

    My assumption

    Most probably you will be fetching data from db and saving to an array and then you will be looping to write the rows.

    This will eat memory.

    My suggestion

    Try to write into the pdf at time of fetching from db. remove the step of storing into an array.

    check execution time and memory allocated in php ini.

    At last when you generate it , think PDF can handle it or not :-) surely It will have huge size .

提交回复
热议问题