Re: Loading a PDF using InputStream

2024-02-01 Thread Lars Juel Jensen
That is weird.. The source file I am looking at for version 3.0.1 does not pass it: --> https://github.com/apache/pdfbox/blob/3.0.1/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFParser.java#L91 On Wed, Jan 31, 2024 at 4:57 PM Tilman Hausherr wrote: > On 31.01.2024 16:19, Lars Juel

Re: Loading a PDF using InputStream

2024-01-31 Thread Lars Juel Jensen
a bug? On Wed, Jan 31, 2024 at 3:46 PM Tilman Hausherr wrote: > On 31.01.2024 14:48, Lars Juel Jensen wrote: > > This creates another problem for me. I am running PDFBox in a kubernetes > > cluster on premises with limited resources. I can not setup persistent > > volume cl

Re: Loading a PDF using InputStream

2024-01-31 Thread Lars Juel Jensen
s the entire PDF into memory, and I can encounter PDF documents that can be over 1GB in size. So loading everything into memory is not an option. On Wed, Jan 31, 2024 at 10:10 AM Tilman Hausherr wrote: > On 31.01.2024 09:50, Lars Juel Jensen wrote: > > In PDFBox2 I could do: > >

Loading a PDF using InputStream

2024-01-31 Thread Lars Juel Jensen
In PDFBox2 I could do: PDDocument.load(inputStream, MemoryUsageSetting.setupTempFileOnly()) But there is no equivalent to this in PDFBox3. How do I read a PDF from an inputstream?