If you're using the PDFMergerUtility class you can specify a
MemoryUsageSetting parameter when calling mergedDocuments. Use its
setupTempFileOnly method to create a temporary file instead of doing it
in-memory.

On Thu, Jan 6, 2022 at 6:27 PM John Lussmyer <cou...@casadelgato.com> wrote:

> I have a need to merge a couple thousand PDF's into one humongous PDF.
> The old tool we use for PDF manipulation runs out of memory as it builds
> the result PDF in memory, and only writes it out when done.
>
> Can PDFBox do something more like streaming the output as it's built?  or
> even not load all the source pdf content streams until needed for output?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to