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

Acrobat JavaScript Bugs related with Forms #15053

Closed
aki2014 opened this issue Jun 17, 2022 · 2 comments · Fixed by #15054
Closed

Acrobat JavaScript Bugs related with Forms #15053

aki2014 opened this issue Jun 17, 2022 · 2 comments · Fixed by #15054
Assignees
Labels

Comments

@aki2014
Copy link

aki2014 commented Jun 17, 2022

Attach (recommended) or Link to PDF file here:

Configuration:

  • Web browser and its version:
  • Operating system and its version:
  • PDF.js version:
  • Is a browser extension:

Steps to reproduce the problem:
1.
2.

What is the expected behavior? (add screenshot)

What went wrong? (add screenshot)

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

@aki2014
Copy link
Author

aki2014 commented Jun 17, 2022

pdfjs_form_demo2.pdf
PDF.js version: 2.15.125 & Firefox 101.0.1

Steps to reproduce the problem:

  1. Click the button labeled "Button1"

What is the expected behavior?

  1. The message "This message can be toggled" message will disappear including the textbox border (red border).
  2. The Button labeled "This Button can be toggled" will disappear.

What went wrong?

  1. The textbox border remains while it should be invisible as well.
  2. The button remains visible while it should be invisible.

Notice that both Adobe Reader and Chrome PDF Viewer show no problems for the same PDF.
Thank you in advance.

@calixteman calixteman self-assigned this Jun 17, 2022
@calixteman
Copy link
Contributor

When clicking on Button 1 the text field is hidden but we just hide the input element and not the section which has the border.
And I didn't implement the button JS stuff for now.

calixteman added a commit to calixteman/pdf.js that referenced this issue Jun 17, 2022
- Since the border belongs to the section containing the HTML
  counterpart of an annotation, this section must be hidden when
  a JS action requires it;
- it wasn't possible to hide a button in using JS.
@calixteman calixteman linked a pull request Jun 17, 2022 that will close this issue
calixteman added a commit to calixteman/pdf.js that referenced this issue Jun 17, 2022
- Since the border belongs to the section containing the HTML
  counterpart of an annotation, this section must be hidden when
  a JS action requires it;
- it wasn't possible to hide a button in using JS.
calixteman added a commit to calixteman/pdf.js that referenced this issue Jun 17, 2022
- Since the border belongs to the section containing the HTML
  counterpart of an annotation, this section must be hidden when
  a JS action requires it;
- it wasn't possible to hide a button in using JS.
calixteman added a commit that referenced this issue Jun 17, 2022
[JS] Hide field borders and buttons (#15053)
rousek pushed a commit to signosoft/pdf.js that referenced this issue Aug 10, 2022
- Since the border belongs to the section containing the HTML
  counterpart of an annotation, this section must be hidden when
  a JS action requires it;
- it wasn't possible to hide a button in using JS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants