jya-dev / supernote-tool

Unofficial python tool for Supernote
Apache License 2.0
254 stars 27 forks source link

PDF Conversion #14

Open hali110 opened 2 years ago

hali110 commented 2 years ago

Hi. My first time leaving an issue so forgive me if I don't do this right. Your tool is amazing and I was wondering how difficult it would be to implement something to convert a .pdf and its respective .mark file to a new .pdf with the edits?

jya-dev commented 2 years ago

Hi, thank you for using this tool.

To realize creating a new pdf file from original pdf and mark file, there is two steps:

  1. generating hand written image from mark file
  2. overlapping hand written image on original pdf

I don't think the first one is difficult because .mark file is similar to .note file. On the other hand, a lot of research is needed to achieve the second one. Hand written image is always same size (1872x1404) but the size of PDF vary. In addition, Supernote have trimming feature. Careful consideration will be required to overlap images on a PDF without any misalignment. I need to research PDF specification and Supernote's trimming feature.

LazyTarget commented 2 years ago

I am also super interested in this feature!!

Trying to create an automated job that generates pdf/jpg files whenever changes are synced. To make it possible to always be able to read the latest version through a computer or phone.

Let me know if I can be of any assistance! Testing or development. I am a backend developer by trade, but mostly in C# and have only dabbled in Python as of recently