I'm trying to convert a large pdf to text. The file is about 20 MB. No matter what python library I use, the CPU spikes to 99% or more. I have an app deployed on AWS with 1 vcpu / 8GB RAM and the server hangs when I try to extract text from more than one file in parallel. Backend is a flask app. I've tried unstructuredio, pdfminer, pypdf2, pymupdf and a few more. How do I solve this? Continue reading...