johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
6.43k stars 296 forks source link

Won't add Annotations to pdf files. #1389

Open thepragmaticmero opened 2 months ago

thepragmaticmero commented 2 months ago

Describe the bug Video: Kooha-2024-09-06-13-20-13.webm

To Reproduce Steps to reproduce the behavior:

  1. Try to select a text and add an annotation

Expected behavior To add an annotation to my .pdf file and the possibility of exporting it as .json or .

Version:

Additional context Also when supposedly "works" it doesn't highlight the text. Pls fix, it's such a letdown that doesn't work reliably :C

thepragmaticmero commented 2 months ago

image

If you need journalctl I'm game.

Mmm.... the crashes are hard to replicate, maybe some vodoo magic will help.

thepragmaticmero commented 2 months ago

Ok the annotations are being created, it's just that the app doesn't reflect that on GTK4.

thepragmaticmero commented 2 months ago

week 3.... any dev here pls?? Q-Q sad face

johnfactotum commented 1 month ago

Annotations aren't currently supported for PDF. There are at least two problems here. The first is that annotations don't work in all fixed-layout books, not just PDFs, because the fixed-layout renderer does not support rendering overlays (yet). The second issue is that currently all annotations are identified with EPUB CFI. Probably for PDF (and maybe even other fixed-layout books), they should be stored with the rects of the highlighted text.

thepragmaticmero commented 1 month ago

oh, thks 4 the knowledge, explains a lot~. I'll be around looking for the progress.~