Domanda

For a limited chunk size, can I write in the same PDF file? For example, I have 12MB of data that I have to write 4 times as split records to a PDF file and I have to append new in EOF.

È stato utile?

Soluzione

You cannot open an existing PDF with TCPDF so using only that will not suffice. See http://sourceforge.net/projects/tcpdf/forums/forum/435311/topic/4575080

But you can import pages with FPDI which as of v1.2.1 can also be used with TCPDF and there's example code

Alternatively you can generate seperate pdf documents and use something like pdftk to merge them.

As for processing large files located on disk with PHP. You can use fopen, fread and friends. There's a good article on this on ibm developerworks and I another on SO too

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top