You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PDF renders the password field as if it were a normal text field.
Also, when interrogating the PDF with pdfjs-dist v3.11.174, the field is given the type "text" rather than "password".
(I know that's an outdated version, but I just can't figure out how to make a newer version work, and it illustrates that it's likely not a rendering problem, but an underlying problem when parsing the PDF)
What is the expected behavior?
Password fields should be rendered as such, and the characters should be obscured (with asterisks or otherwise), like what happens in the following:
Adobe Acrobat:
Chrome:
Edge (quite probably the same renderer as Chrome):
What went wrong?
As mentioned above, the PDF renders the password field as if it were a normal text field.
Link to a viewer
No response
Additional context
Admittedly, the usefulness of a password field in a PDF is somewhat lost on me, however it is a feature that should be supported because it's a bit of a problem if a value should be obscured and you completely expose it.
Yes the value would still be visible to anyone with basic JS knowledge that inspects the viewer, but at least it wouldn't be visible to someone looking over your shoulder when you open the PDF.
The text was updated successfully, but these errors were encountered:
Attach (recommended) or Link to PDF file
password-bug.pdf
Web browser and its version
Firefox 134.0.2 (64-bit)
Operating system and its version
Windows 10 Pro 22H2 19045.5247
PDF.js version
Whatever version is currently in the online demo
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
https://chromewebstore.google.com/detail/pdf-viewer/oemmndcbldboiebfnladdacbdfmadadm
Also, when interrogating the PDF with pdfjs-dist v3.11.174, the field is given the type "text" rather than "password".
(I know that's an outdated version, but I just can't figure out how to make a newer version work, and it illustrates that it's likely not a rendering problem, but an underlying problem when parsing the PDF)
What is the expected behavior?
Password fields should be rendered as such, and the characters should be obscured (with asterisks or otherwise), like what happens in the following:
Adobe Acrobat:



Chrome:
Edge (quite probably the same renderer as Chrome):
What went wrong?
As mentioned above, the PDF renders the password field as if it were a normal text field.
Link to a viewer
No response
Additional context
Admittedly, the usefulness of a password field in a PDF is somewhat lost on me, however it is a feature that should be supported because it's a bit of a problem if a value should be obscured and you completely expose it.
Yes the value would still be visible to anyone with basic JS knowledge that inspects the viewer, but at least it wouldn't be visible to someone looking over your shoulder when you open the PDF.
The text was updated successfully, but these errors were encountered: