We are using the Aspose.PDF tool to convert the front page of a PDF into an image. We need this for various reasons, but for instance as a thumbnail.
When converting many PDFs at a time, we are experiencing issues with the Aspose.PDF tool stalling or going into some sort of infinite looping.
We have to kill the process to make it start again.
Thoughrough investigation shows us that the process dies in the Aspose.PDF code. We have tried many different approaches involving both PDF to PNG and PDF to JPEG. All seems to have the same issue.
Looking at the release notes for v. 20.3, there seem to have been similar issues with TIF and HTML conversion. These are issues like:
I do not know if these are related, but from the release notes it seems to be the same type of problem.
I have managed to reproduce the problem in a small local application that I have shared this thread. It runs for a few iterations and then stops. It also includes the PDF’s that are troublesome.
What happens is it runs for a short while (up to 100 iterations) and then it stalls. What I see is the conversion creates a 0 byte file that seems to be locked by the application. From there, it just hangs infinitely. I think it could be because of it running in parallel, but I am not sure.
You can find the application [here]
Any help would be much appreciated. Thanks in advance!