timClicks / slate

The simplest way to extract text from PDFs in Python

Home Page:http://timmcnamara.co.nz/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I add tabs as delimiter, and new line

davidhedlund opened this issue · comments

How should my code snippet look like to:

  • Use tabs instead of space as delimiter.
  • Add new lines (all lines are merged).
import slate

with open('/path/to/file.pdf') as f:
     doc = slate.PDF(f)
print doc