Extracting Text from PDF File

Download and install python from https://www.python.org/downloads

open command prompt and run:

pip install pdfminer

This will install PDFMiner python library for working with PDF files

PDFMiner is a tool for extracting information from PDF documents. Unlike other PDF-related tools, it focuses entirely on getting and analyzing text data. PDFMiner allows obtaining the exact location of texts in a page, as well as other information such as fonts or lines. It includes a PDF converter that can transform PDF files into other text formats (such as HTML). It has an extensible PDF parser that can be used for other purposes instead of text analysis.

https://pypi.python.org/pypi/pdfminer/

PDFMiner has a very useful script called pdf2txt.py

It can be used to convert data into text, xml or html.

This command will extract text information from PDF file:

python C:\Python27\Scripts\pdf2txt.py -o test.txt -t text test.pdf

Is done by using “External application” Package Action:

Advanced ETL Processor Professional and Enterprise Documentation
Visual Importer ETL Professional and Enterprise Documentation

For more technologies supported by our ETL Software see Advanced ETL Processor Versions and Visual Importer ETL Versions

Confused? Ask question on our ETL forum

  • knowledgebase/extracting_text_from_pdf_file.txt
  • Last modified: 17/09/2018 09:45
  • by admin