Affects Version/s: 1.4.0
Fix Version/s: 1.5.0
PDFBOX uses by default temporary files as work space (regardless of the PDF size).
org.apache.pdfbox.io.RandomAcessFile is not buffered, so each read/write acess is a system call. There are functions like readlong, which call read 4 times to read 4 bytes. Additionally, it adds the usual problems with tempory files.
For normal sized PDFs files, the in-memory implementation RandomAccessBuffer should not increase the memory usage too much, while providing faster IO as all access operations are only memory copies.
Therefore, please consider switching the default to in-memory scratch buffers. Users with very large files can still pass a temporary directory.
|Affects Version/s||1.4.0 [ 12315444 ]|
|Affects Version/s||1.5.0 [ 12316012 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Assignee||Andreas Lehmkühler [ lehmi ]|
|Fix Version/s||1.5.0 [ 12316012 ]|
|Resolution||Fixed [ 1 ]|
|Issue Type||Wish [ 5 ]||Improvement [ 4 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|