Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdfviewer: link rendering and interaction #1

Open
ghrimx opened this issue Sep 13, 2024 · 1 comment
Open

pdfviewer: link rendering and interaction #1

ghrimx opened this issue Sep 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ghrimx
Copy link
Owner

ghrimx commented Sep 13, 2024

Link in PDF should be highlighted and the viewer should jump to the target of the link.

QPdfView does recognize the link on the first page and areas above the link can be clicked. However, the painted areas do not match the link location and on resizing or jumping to another page these hidden areas remains and links on other pages are not rendered.

To paint rectangle on links, one must know the coordinates of the widget rendering PDF pages in the Qscrollarea which change with the scroll and zoom.

Temporary action: mousePressEvent of QPdfView has been reimplemented to disable link interaction with the mouse and avoid unwanted behaviour. (see pdfviewer.py)

issue_01 - link rendering

@ghrimx ghrimx added the bug Something isn't working label Sep 13, 2024
@ghrimx ghrimx pinned this issue Sep 13, 2024
@ghrimx
Copy link
Owner Author

ghrimx commented Oct 1, 2024

A custom pdf viewer is in development (check my other repo PyMuPDF4QT)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant