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

Widget Annotation: PageOpen (/PO) and PageClose (/PC) events are not reacted upon #18305

Closed
agrahn opened this issue Jun 20, 2024 · 0 comments · Fixed by #18345
Closed

Widget Annotation: PageOpen (/PO) and PageClose (/PC) events are not reacted upon #18305

agrahn opened this issue Jun 20, 2024 · 0 comments · Fixed by #18345

Comments

@agrahn
Copy link
Contributor

agrahn commented Jun 20, 2024

Attach (recommended) or Link to PDF file here: triggers.pdf

Configuration:

  • Web browser and its version: Firefox 126.0.1
  • Operating system and its version: Gentoo Linux
  • PDF.js version: 4.1.379
  • Is a browser extension: no

Steps to reproduce the problem:

  1. Open the attached two-page PDF. On the second page, there is a pushbutton that, within its AA (AdditionalActions) dictionary, defines actions for the PageOpen/PageClose (/PO and /PC entries) and for the MouseDown/MouseUp (/D and /U entries) trigger events. As actions, appropriate debug messages are written into the browser console.
  2. When scrolling forth and back to and from the page with the Widget Annotation, the expected debug messages PageOpen and PageClose should be printed into the console.

What is the expected behavior?

When scrolling forth and back in the 2-page document, corresponding debug messages should appear in the browser console.

What went wrong?

Nothing happens when scrolling between the document pages. Thus, PageOpen and PageClose do not trigger the associated actions. Only mouse interaction with the Widget Annotation is functional, MouseDown and MouseUp events are reacted upon and corresponding debug messages appear in the browser console.

@agrahn agrahn changed the title Widget Annotation: PageOpen and PageClose events are not reacted upon Widget Annotation: PageOpen (/PO) and PageClose (/PC) events are not reacted upon Jun 20, 2024
@calixteman calixteman self-assigned this Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants