Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install slate

How to install slate

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install slate
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.3 Available View build log
0.2.3 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
Windows (64-bit)
0.3 Available View build log
0.2.3 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
Mac OS X (10.5+)
0.3 Available View build log
0.2.3 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
Linux (32-bit)
0.3 Available View build log
0.2.3 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
Linux (64-bit)
0.3 Available View build log
0.2.3 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
 
Author
License
GPL v3 or later
Dependencies
Depended by
Imports
Lastest release
version 0.3 on Jan 5th, 2011

Slate is a Python package that simplifies the process of extracting text from PDF files. It depends on the PDFMiner package.

Slate provides one class, PDF. PDF takes a file-like object and will extract all text from the document, presentating each page as a string of text:

>>> with open('example.pdf') as f:
...    doc = slate.PDF(f)
...
>>> doc
[..., ..., ...]
>>> doc[1]
'Text from page 2...'

If your pdf is password protected, pass the password as the second argument:

>>> with open('secrets.pdf') as f:
...     doc = slate.PDF(f, 'password')
...
>>> doc[0]
"My mother doesn't know this, but..."

More complex operations

If you would like access to the images, font files and other information, then take some time to learn the PDFMiner API.

What is wrong with PDFMiner?

  1. Getting simple things done, like extracting the text is quite complex. The program is not designed to return Python objects, which makes interfacing things irritating.
  2. It's an extremely complete set of tools, with multiple and moderately steep learning curves.
  3. It's not written with hackability in mind.

GPL?

If you would like to use this software in a non-free manner, please contact the copyright owner.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:5

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.