Python script to import pdf annotation to logseq

Hi, I made a python script that takes as input an annotated pdf and produced the .md and .edn files to be used directly in Logseq.

Text highlights are exported correctly, any annotation that is not text (shapes, lines, rectangles, whatever) will be turned into a logseq area highlight.

This is probably rough around the edges because PDF readers are all different. Personnaly I’m using okular. PR on my github are welcome!