Skip to content

Commit

Permalink
changed filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Lee committed Mar 27, 2014
1 parent 138d911 commit 895500a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions example/test_to_pandas.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pandas as pd
import pdftableextract as pdf

pages = ["2"]
cells = [pdf.process_page("a.pdf",p) for p in pages]
pages = ["1"]
cells = [pdf.process_page("example.pdf",p) for p in pages]

#flatten the cells structure
cells = [item for sublist in cells for item in sublist ]
Expand All @@ -17,3 +17,4 @@
#data is row '2' through '-1'

data =pd.DataFrame(li[2:-1], columns=li[1], index=[l[0] for l in li[2:-1]])
print data

2 comments on commit 895500a

@amccarren
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I run this example I get
CalledProcessError: Command '['pdftoppm', '-h']' returned non-zero exit status 99

I am working on windows 7 and have set the path to the directory where the pdftoppm.exe is stored.
Any suggestions?

Andrew

@eelsirhc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see issue #18 for a reply

Please sign in to comment.