logseq / logseq/logseq

Unable to highlight PDF across pages

Open
#11,385 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:status/automatic-stale
Dominant language
Clojure
Stars
45k
Forks
2.8k
Avg merge
1d 22h
Merged PRs (30d)
105

Description

### Search first

- [x] I searched and no similar issues were found

### What Happened?

When highlighting text cross page in a PDF file, it can't correctly show highlighted text as shown in the below image. In my case, it happened in all pdf file in both english and chinese every time. But "copy text" and "copy ref" fuctions and "annotation page" shows that it correctly highlighted text.

### Reproduce the Bug

1. drag a pdf file to a block (the bug shows up in all pdf file in my case.)
2. click the corresponding link to open the pdf page
3. use highlight mode to highlight text that across two pages

### Expected Behavior

show highlight on only the text I selected.

### Screenshots

![recording](https://github.com/logseq/logseq/assets/83383896/bc91c90d-9edf-438e-867b-c236cf01f1c3)

### Desktop or Mobile Platform Information

App Version: 0.10.9
Git Revision: c67b8b5
Platform: Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML like Gecko) Logseq/0.10.9 Chrome/118.0.5993.159 Electron/27.1.3 Safari/537.36
Language: zh-CN
Plugins: logseq-awesome-styler (v3.7.1), logseq-bullet-threading (v1.1.4), logseq-catppuccin (v0.6.3)

### Additional Context

It happened on all pdf files, i don't know whether it will happened on others' computer, but it do happen every time on mine.

### Are you willing to submit a PR? If you know how to fix the bug.

- [ ] I'm willing to submit a PR (Thank you!)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Logseq 0.10.9 on Windows by dragging a PDF into a block, opening its link, and highlighting text across two pages. Compare the highlight with the selected text and the working copy-text, copy-ref, and annotation-page behavior; done means only the selected text is highlighted consistently across PDF files.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.