Need help :) #3
Replies: 2 comments 6 replies
-
Hi! I closed the issue and our conversation will continue here. Glad to know you're working on this. Out of curiosity I did check the format of highlight coordinates in Logseq. To my understanding, Logseq records the PDF page size we actually see into :position {:bounding {:x1 1,
:y1 1,
:x2 9,
:y2 8,
:width 10,
:height 10}, So basically if width and height in your scripts describe the size of PDF correctly, then it should work. For example, maybe it's a good idea to check all the Hope this helps! I am not sure if it's all the secret hiden in the format, so let me know if it doesn't' work :) Cheers |
Beta Was this translation helpful? Give feedback.
-
Hi, As for the name of edn, it's usually exactly the same with the PDF. So probably Logseq creates one if the right one doesn't exist. That might explain it. Cheers! |
Beta Was this translation helpful? Give feedback.
-
Hi!
I've been coding a simple script that turns an annotated pdf into md+edn format for logseq. Effectively "importing" a pdf into logseq.
It's working okayish but I'm having lots of issues figuring out how the coordinates are working in logseq vs elsewhere. The annotations are imported, the text is good, the color is fine, but the area of the highlights have never even remotely worked.
I was wondering if you knew anything about this and would be okay with telling me what I'm doing wrong.
Here's my repo: https://github.com/thiswillbeyourgithub/pdfannotations_to_logseq
Have a nice day!
Beta Was this translation helpful? Give feedback.
All reactions