From 246f569e6894c17ad61bd891376c951f3d582077 Mon Sep 17 00:00:00 2001 From: titipata Date: Tue, 31 May 2016 17:27:32 -0500 Subject: [PATCH 1/2] Fix relative path for Python 3, close #24 --- src/slate/classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slate/classes.py b/src/slate/classes.py index 580b096..29591fe 100644 --- a/src/slate/classes.py +++ b/src/slate/classes.py @@ -22,7 +22,7 @@ from pdfminer.pdfparser import PDFPage except ImportError: from pdfminer.pdfpage import PDFPage -import utils +from . import utils __all__ = ['PDF'] From e8b0651f7ff641e9643d3863c212be3727b15b0b Mon Sep 17 00:00:00 2001 From: titipata Date: Tue, 31 May 2016 17:29:53 -0500 Subject: [PATCH 2/2] Update installation in README --- README | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README b/README index 5fa8792..5236f25 100644 --- a/README +++ b/README @@ -13,7 +13,7 @@ as a string of text: >>> with open('example.pdf') as f: ... doc = slate.PDF(f) ... - >>> doc + >>> doc [..., ..., ...] >>> doc[1] 'Text from page 2...' @@ -33,6 +33,12 @@ 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. +Installation +------------ + +To install Slate, clone the repository and run + + $ python setup.py install What is wrong with PDFMiner? ---------------------------- @@ -40,7 +46,6 @@ 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 + 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. -