Re: PDFBox 3.0.1 / RandomAccessReadBuffer bug?

2024-02-08 Thread Andreas Lehmkühler
Done, I've fixed the issue. @David thanks for the report Andreas Am 08.02.24 um 07:58 schrieb Andreas Lehmkühler: Hi David, thanks for the bug report. You are right and the proposed solution seems to be a valid fix. I've created https://issues.apache.org/jira/browse/PDFBOX-5764 to handle

Re: PDFBox 3.0.1 / RandomAccessReadBuffer bug?

2024-02-07 Thread Andreas Lehmkühler
Hi David, thanks for the bug report. You are right and the proposed solution seems to be a valid fix. I've created https://issues.apache.org/jira/browse/PDFBOX-5764 to handle it. Andreas Am 08.02.24 um 00:00 schrieb david.kl...@atlas.cz: Hello I think that this is not correct in some

PDFBox 3.0.1 / RandomAccessReadBuffer bug?

2024-02-07 Thread david.klika
Hello I think that this is not correct in some cases: public RandomAccessReadBuffer(ByteBuffer input) { chunkSize = input.capacity(); IMHO input.limit() shoud be used instead of input.capacity(). When it matters: I have a ByteArrayOutputStream to that is written a PDF do