Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extract Text with its Font Details (Style,Size,color,Italic etc) from a PDF in Python [closed]

I am looking to Extract Text with its Font Details (Style,Size,color,Italic etc) from a PDF in Python.

I need to extract text and its metadata for translation purpose.Can anyone suggest any libraries for the same.

like image 226
Udaya Kiran Avatar asked Feb 21 '14 06:02

Udaya Kiran


1 Answers

There is a python library for that. Please have a look at PDFMiner.

http://www.unixuser.org/~euske/python/pdfminer/index.html.

pdftext.py gives you the text extracted out of pdf and it also gives you other information like font and font size etc.

You can try that.

Note: Python 3 is not supported

like image 148
Keshav Agrawal Avatar answered Oct 21 '22 19:10

Keshav Agrawal