Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: list index out of range (reopening of #15) #20

Open
aleksas opened this issue Aug 25, 2019 · 0 comments
Open

IndexError: list index out of range (reopening of #15) #20

aleksas opened this issue Aug 25, 2019 · 0 comments

Comments

@aleksas
Copy link

aleksas commented Aug 25, 2019

Getting IndexError: list index out of range (see bellow) when converting THIS PDF. Reopening of #15.

Parsing Anbinderis_2010.pdf
Traceback (most recent call last):
  File "/usr/local/bin/pdf2md", line 32, in <module>
    main(sys.argv)
  File "/usr/local/bin/pdf2md", line 27, in main
    writer.write(piles)
  File "/usr/local/lib/python2.7/dist-packages/pdf2md/writer.py", line 27, in write
    self._write_simple(piles)
  File "/usr/local/lib/python2.7/dist-packages/pdf2md/writer.py", line 50, in _write_simple
    markdown = pile.gen_markdown(self._syntax)
  File "/usr/local/lib/python2.7/dist-packages/pdf2md/pile.py", line 76, in gen_markdown
    return self._gen_table_markdown(syntax)
  File "/usr/local/lib/python2.7/dist-packages/pdf2md/pile.py", line 290, in _gen_table_markdown
    intermediate = self._gen_table_intermediate()
  File "/usr/local/lib/python2.7/dist-packages/pdf2md/pile.py", line 319, in _gen_table_intermediate
    bottom, rowspan = self._find_exist_coor(left, right, row_idx, horizontal_coor, 'horizontal')
  File "/usr/local/lib/python2.7/dist-packages/pdf2md/pile.py", line 357, in _find_exist_coor
    coor = line_coor[start_idx + span]
IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant