Open Evidlo opened 5 years ago
Thanks for the heads-up!
Do you (or anybody else) want to update the .rm
file handling and add some meta-data support for the JSON files (r/w)?
I would propose to use nlohmann/json for this #19.
Same for me. Was looking forward to use the tool. Compiled fine on my aarch64. Then I realized that it will not read the notebook because of the uuid names :(
Isn't it possible to do give the entire filename on command line and let the page be converted?
lines2png 65e1da44-f3e7-4af5-8273-76b17a551172/107cbcaa-33fe-4c3c-b683-42af27fef6db.rm
Running 2.0.2.0 on my remarkable.
I currently don't have time for the meta-data update that is needed here, but PRs are very welcome.
Just to follow on here, it seems that as of firmware v2.14.1.866 (or possibly before), these files are now version 5, so simply accessing according to the JSON isn't enough, and there may be more significant changes to consider... 😢 Happy to provide a full set of files on request.
00000000: 7265 4d61 726b 6162 6c65 202e 6c69 6e65 reMarkable .line
00000010: 7320 6669 6c65 2c20 7665 7273 696f 6e3d s file, version=
00000020: 3520 2020 2020 2020 2020 2001 0000 0007 5 .....
00000030: 0000 000f 0000 0000 0000 0000 0000 0000 ................
00000040: 0008 4000 0000 002d 0000 00c9 50d5 43ca ..@....-....P.C.
00000050: dd55 445b 415c 3f64 819c 40e3 388e 4000 .UD[A\?d..@.8.@.
...
Unfortunately I don't have the time to get into this right now, but I'll keep it in mind - I've only just got my RM2 and was hopeful this would work!
As of update 1.8, the .rm files are in a new format.
It looks like instead of each file being indexed by the page number, the pages are now assigned a random UUID.
Additionally, the accompanying .json files contain layer information:
Page order can be inferred from the .content file
Only pages that have been annotated have .rm files.