Re: how to replace MemoryUsageSetting.setupMixed(100mb) ?

2023-10-07 Thread Andreas Lehmkühler
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

Re: how to replace MemoryUsageSetting.setupMixed(100mb) ?

2023-10-05 Thread John Lussmyer
Thanks, that does help.  Having an example means I'll find the relevant classes to use MUCH faster. On 10/5/2023 3:07 PM, Pados Attila wrote: I am using something like this: PDDocument a1doc = Loader.loadPDF(new RandomAccessReadBuffer(resourceAsStream), () -> new

Re: how to replace MemoryUsageSetting.setupMixed(100mb) ?

2023-10-05 Thread 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) On Thu, Oct 5, 2023 at 9:50 PM John Lussmyer wrote: > > I'm trying

how to replace MemoryUsageSetting.setupMixed(100mb) ?

2023-10-05 Thread John Lussmyer
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