Produce full PDFs of notes and annotated PDFs (including new v6 format) #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With these changes,
rmtool.py convert-all -r my_raw_remarkable_files/ -o outdir/ -d
successfully converts every (pre-v6 and v6) document on my RM to PDF. It produces sane document sizes, works for pure RM notebooks, annotated PDFs and mixes thereof, handles foreground notes that extend outside the background PDF's area, etc. It is an attempt to make the renderer "universal" again, as it was before the new v6 format, and like the RM USB web interface renderer.It requires
rsvg-convert
instead ofinkscape
(in the future I think it would be a good idea to avoid all these CLI tools), PyPDF2 instead ofpdfunite
and rmscene with this small modification.I am interested in whether it works for someone else's RM.