How to extract text from a PDF file?

前端 未结 24 2384
孤城傲影
孤城傲影 2020-11-22 14:05

I\'m trying to extract the text included in this PDF file using Python.

I\'m using the PyPDF2 module, and have the following script:

imp         


        
24条回答
  •  广开言路
    2020-11-22 14:38

    pdftotext is the best and simplest one! pdftotext also reserves the structure as well.

    I tried PyPDF2, PDFMiner and a few others but none of them gave a satisfactory result.

提交回复
热议问题