ReMarkableAPI icon indicating copy to clipboard operation
ReMarkableAPI copied to clipboard

"Download" svg and PDF

Open splitbrain opened this issue 7 years ago • 2 comments

Currently the download command only creates a zip file with raw .lines data. It would be cool if could also create SVGs and PDFs from it. This would require at least porting the existing lines to svg python code to PHP.

splitbrain avatar Feb 02 '18 11:02 splitbrain

This may be of interest: https://plasma.ninja/blog/devices/remarkable/binary/format/2017/12/26/reMarkable-lines-file-format.html It's a whole post documenting the .lines structure and binary makeup.

rioam2 avatar Feb 06 '18 03:02 rioam2

+1 for this features. Using rM2svg -> SVGO -> rsvg-convert -f pdf gives me PDFs that are a few hundred KB for a 5 page notebook, compared to multiple MB from remarkable's solution. Not to mention that rM's PDF export is broken for some brushes.

Edit: Seems like optimizing the SVG has no effect on the PDF size. However, for SVG downloads, a svgo pass might still be useful.

turbo avatar Feb 21 '18 19:02 turbo