I am using PDF Box version 2.0.9 in my application. I have to parse large pdf files from web. Following is the code I am using
PDF Box version 2.0.9
MimeDetector Class
Please use below while loading document MemoryUsageSetting.setupTempFileOnly()