How to create a large PDF, semi fast

I need to create a large PDF, 2480 pages, to be precise. I am currently using indesign, and so far the result is exactly what I want. I would rather not be involved in the process of creating the document. Indesign takes 31 minutes to merge data, create a pdf file, save the pdf and save the pdf.indd file. (I really don't need the pdf.indd file, but I will no longer need to recreate the data merge if something happens to pdf)

I hope for php or similar solution. My data is currently stored in MySQL. Most pdfs are static text with 19 dynamically controlled text fields. There is one image in pdf, 75x100px @ 72dpi.

The result must be accurate, the pdf file is printed and cut in half by 4.25 inches.

I tried TCPDF, although it quickly generates up to 50 pages, after which it would rather die than give me a way out. I also played with mPDF, and found it to be ... not so friendly. I also considered creating many small files and using some utility to combine a smaller PDF into one large pdf. Although it is like driving through the mountains.

Any thoughts would be helpful.

+5
source share
3 answers

, , PHP, . - PDF , . - ( ImageMagic, GD ..) PDF. ( , , PDF .)

, , InDesign. InDesign XML . , , .

+2

PDF, LaTeX . PDF , , LaTeX. question, , .

+2

, PDF , wkhtmltopdf. PHP, Perl. , PDF. PHP, , , Ruby, Net, Java PHP Framework Laravel ..

wkhtmltopdf - (LGPLv3) HTML PDF. Wkhtmltopdf PHP- PDF, dompdf, TCPDF, FPDF .. 641- PDF 3-4 .

wkhtmltopdf

1 - wkhtmltopdf SSH. Secure Shell (SSH) - UNIX. , - .

2 - , git bash CMD ( Windows),

ssh -p port-number username@ip.ad.re.ss 

3 - wkhtmtopdf http://wkhtmltopdf.org/downloads.html URL- URL-.

wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
tar -xvf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz 

, wkhtmltopdf /usr/bin/

Test using the command below to generate example.pdf./wkhtmltopdf http://www.example.com/example.pdf

You can read more information at: https://www.techuz.com/blog/generate-large-pdf-file-php/

0
source

All Articles