how to read pdf file in python without converting it in unix?

pdf, python

Solution

PDF files contain formatted data, you cannot read directly,

so use pypdf module! click here https://pypi.org/project/pypdf/ Install and you can read without converting.

Problem

``` pdfile=open("tutorial.pdf","r") xyz= pdfile.readlines() pqr=pdfile.readline() for a in xyz: print a ``` this code doesnot display actual content. Instead it displays some question marks and boxes.

Original source

Related problems