Hi All,

Regarding PDFBOX-2301, and the use of scratch files: right now, each COSStream uses one or two scratch files.

I recently ran into the problem on Linux where the max number of open files allowed to the JVM by the OS was reached because of this.

Is there a plan around this?

Is it maybe that my use case is not expected?

My use case is:
Open PDDocument 1
Open PDDocument 2
for a few hundred times
import page 1 of PDDocument 1 into PDDocument 2 and overlay some stuff ontop.
save PDDocument 2.

I have written a patch to use one single java.io.RandomAccessFile as a scratch file per COSDocument, using pages in a doubly linked list to separate streams in the same file. Would you be interested in adding this to PDFBox?

Thanks,
Jesse

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to