Am 06.10.23 um 00:07 schrieb Pados Attila:
I am using something like this:

PDDocument a1doc = Loader.loadPDF(new
RandomAccessReadBuffer(resourceAsStream), () -> new
ScratchFile(MemoryUsageSetting.setupMixed(100)));

(I use it with tempFileOnly, but the rest are the same)

Be aware that all of this doesn't have any impact on the memory footprint if you are simply reading the pdf, such as rendering or text extraction. Starting with 3.0.0 the stream cache is limited to operations like writing a pdf or creating/manipulating a pdf


On Thu, Oct 5, 2023 at 9:50 PM John Lussmyer <cou...@casadelgato.com> wrote:

I'm trying to update to the latest PDFBox 3.0.0.
The code was using a call to
loadPDF(file,MemoryUsageSetting.setupMixed(MB100); // 100 MB

I see that that no longer exists, but the only mention of it doesn't
seem to provide any info on how to configure an equivalent replacement?

Any suggestions?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to