rschroll / rmrl

Render reMarkable documents to PDF
GNU General Public License v3.0
119 stars 21 forks source link

Index out of bounds errror? #17

Open amrmjd opened 2 years ago

amrmjd commented 2 years ago

Hi - getting the following error:

Traceback (most recent call last): File "/usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.9/site-packages/rmrl/__main__.py", line 53, in <module> sys.exit(main()) File "/usr/local/lib/python3.9/site-packages/rmrl/__main__.py", line 44, in main stream = render(source, File "/usr/local/lib/python3.9/site-packages/rmrl/render.py", line 130, in render rmpage = rmpdfr.pages[i] IndexError: list index out of range

Looks like the code is operating on a range using the length of the basepdfr.pages array and then also using that on the rmpdfr.pages array that apparently isn't always the same length. Don't know how to fix. Anyone else experiencing this?

zerone01y commented 1 year ago

Same issue here...