Currently I can't think of any way that this could be done with dompdf
alone without some modification of the code internals. I have done
something similar in the past, though, using dompdf in conjunction
with pdftk. In that case, every page of the document used a fairly
precise layout. Because of this I could render each page separately. I
would save the resulting PDF to a file. After all pages had been
rendered I used pdftk to join the individual files into a single file.
The dompdf object had to be destroyed each time to ensure that the
memory was released, but it resulted in a lighter memory load and
speedier rendering with larger documents in my case.
The upcoming release will include some performance-related
improvements, but we're hoping to make this a focus of the project
within the next few releases.
On Jan 28, 1:15 pm, John Colvin <
john.col...@eschoolconsultants.com>
wrote: