rschroll / rmrl

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

Render crash with annotated PDF #4

Closed f3fora closed 3 years ago

f3fora commented 3 years ago

Related to rschroll/rmfuse#17

Run python -m rmrl Test.zip Test,pdf

File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.9/site-packages/rmrl/__main__.py", line 53, in <module>
    sys.exit(main())
  File "/usr/lib/python3.9/site-packages/rmrl/__main__.py", line 44, in main
    stream = render(source,
  File "/usr/lib/python3.9/site-packages/rmrl/render.py", line 149, in render
    merge_pages(basepage, rmpage, i in changed_pages, expand_pages)
  File "/usr/lib/python3.9/site-packages/rmrl/render.py", line 478, in merge_pages
    effective_rotation = int(basepage.Rotate)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

where Test.zip is an annotated PDF.

rschroll commented 3 years ago

Thanks for the catch. I'm pretty sure I've fixed it, but let me know if it's still hanging around.

On Mon, Mar 1, 2021 at 3:06 PM AF notifications@github.com wrote:

Related to rschroll/rmfuse#17 https://github.com/rschroll/rmfuse/issues/17

Run python -m rmrl Test.zip Test,pdf

File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/lib/python3.9/site-packages/rmrl/main.py", line 53, in sys.exit(main()) File "/usr/lib/python3.9/site-packages/rmrl/main.py", line 44, in main stream = render(source, File "/usr/lib/python3.9/site-packages/rmrl/render.py", line 149, in render merge_pages(basepage, rmpage, i in changed_pages, expand_pages) File "/usr/lib/python3.9/site-packages/rmrl/render.py", line 478, in merge_pages effective_rotation = int(basepage.Rotate) TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

where Test.zip is an annotated PDF.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rschroll/rmrl/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACZ2H2MCEVAEYYZPZPAP5LTBQMYPANCNFSM4YNQ34FQ .