reHackable / maxio

Companion daemon for the reMarkable™ paper tablet
GNU Lesser General Public License v3.0
155 stars 52 forks source link

Make exportNotebook work with new reMarkable versions plus other features #29

Closed jackjackk closed 4 years ago

jackjackk commented 4 years ago

Tested with rM v1.7.2.3 and v1.8.1.1. Below the list of major changes

I didn't test all corner cases, plus there is plenty of optimizations possible (e.g. pdf pages w/ no annotations are still converted to svg for the final pdftk combinations) but maybe it's a starting point to keep this useful tool current.

jackjackk commented 4 years ago

@edupont thanks a lot for your review! unfortunately I realized the rm2svg does not support the new .lines format, which is version 5. I was testing it with notebooks created before updating the rM to the latest version, hence with a previous .lines format. Do you know where we can find info to update it? also this c++ code https://github.com/ax3l/lines-are-beautiful/ seemed to not be working after a quick test.

jackjackk commented 4 years ago

Alright, there was an added 4-byte field, not sure what for, but for the moment at least it produces the expected output on a couple of test pages. eventually we will need to figure out what is that.