php - How to generate PDF with low memory on the server? -


I am converting PDF of my DB into table and I am using it.

First I have to convert my table to HTML and then I can convert it to PDF, which uses a lot of memory and I have some resources on the server ( 256 m for php max).

PhD can have thousands of records for PDF with 256 M memory max?

Can I create a PDF page from the page and finally add all the pages? / P>

pre> require_once ("tcpdf / tcpdf.php"); // ur workstation requirement_one ("fpdi / fpdi.php"); Class concat_pdf extends FPDI {var $ files = array (); Function Set Files ($ files) {$ this- & gt; Files = $ files; } Concrete () {foreach ($ this-> Files AS $ file) {$ pagecount = $ this- & gt; SetSourceFile ($ file); ($ I = 1; $ i & lt; = $ PageCount; $ i ++) for {$ tplidx = $ this- & gt; Import page ($ i); $ S = $ this- & gt; GetTemplatesize ($ tplidx); $ This- & gt; AddPage (A 'P', array ($ s ['w'], $ s ['h'])); $ This- & gt; UseTemplate ($ tplidx); }}}}

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -