1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Python: PDF to text is consuming too much CPU

Discussão em 'Python' iniciado por Stack, Setembro 16, 2024.

  1. Stack

    Stack Membro Participativo

    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...

Compartilhe esta Página