View Single Post
Old 11-10-2020, 06:56 AM   #13
dnquark
Junior Member
dnquark began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2020
Device: Onyx Note Air
Quote:
Originally Posted by adrians View Post
Can you provide some more details on what you found?
I just grabbed the db files and poked around If you are curious, I suggest getting the backup zip file from local storage (it will be in `/sdcard/note/backup/local/`), and opening it with SQLite browser. Most of the fields are fairly self-explanatory with the exception of binary stroke blobs, but these are arrays of 24-byte structs, (4 floats and a long, big-endian, corresponding to x, y, pressure, size, timestamp). Size is always 0. It seems that for strokes, if the SVG I get from PDF has N points, there will be 2N points in the binary blob. The scaling/units in the float values isn't clear, so it's difficult to do side-by-side comparison with SVG output. But if you just do a scatterplot of the points, you get the strokes you expect.

That's about all I found out, if you are able to reverse-engineer more of the file format that would be pretty cool. It seems quite doable, but I don't really have the bandwidth for it now.

Last edited by dnquark; 11-10-2020 at 06:59 AM.
dnquark is offline   Reply With Quote