Taking screenshots from PDF file with Apache PDFBox

Original one is not accessible publicly, but maybe when solution will work with this demo file, it will work also with original one.

hi,

reason is file is somehow corrupted when used url in java
http://aplaidshirt.epizy.com/samplePDF.pdf?i=1

I have tried to save it first to disk and file size is zero

when downloaded by button, no issues

try to use some other pdf example file

It was processed by an anti-copy sofware, just like in production. I need to use exactly this file. Saving is disabled in production, this is why I wrote, that solution shouldn’t use saving.

hi,

Yes, that is software in use.

hi,

that’s why you are not able to read it