PDF viewer stuck on page
Categories
(Firefox :: PDF Viewer, defect, P3)
Tracking
()
People
(Reporter: raysatiro, Unassigned)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0
Steps to reproduce:
- Open the attached PDF
- Observe the PDF is forwarded to some "warning" pages at the end of the PDF that expect the user to click OK, but OK can't be clicked
- The rest of the PDF (several hundred pages) cannot be viewed because it's stuck at that warning / confirm page.
Actual results:
I want to view all the pages of a PDF but Firefox is limiting me to like 3 pages of it. I have the same problem in Chrome. https://bugs.chromium.org/p/chromium/issues/detail?id=1405690
Expected results:
I think this has something to do with javascript in the PDF. PDF viewers in browsers execute some of the javascript but not enough for it to work properly. If it wanted to execute zero javascript I'd be fine with that I just want to view all the pages.
Reporter | ||
Comment 1•3 years ago
|
||
Reproducible in 110.0a1
Comment 2•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•3 years ago
|
Comment 3•3 years ago
|
||
I am able to click on 'Ok' button from the pdf but still only 3 pages(397, 398, 399) are displayed from a total of 399, also since it is the same behavior on Chrome isn't this a pdf issue? I tested on Win10x64 using FF build 110.0a1(20230108214732) and Chrome Version 108.0.5359.125.
Comment 4•3 years ago
|
||
What is the behavior in Adobe Reader?
Comment 5•3 years ago
|
||
I saved the pdf to download folder and opened it on adobe, same message pop-up and after pressing on Ok button I was able to only view the same 3 pages.
Reporter | ||
Comment 6•3 years ago
|
||
I think this is a pdf.js issue, refer to the github reference posted earlier by Jonas Jenwald. In the latest Acrobat Reader DC, version 2022.003.20282, I am able to view the PDF. After clicking OK the PDF returns to the first page and all pages are accessible.
Reporter | ||
Comment 7•3 years ago
|
||
Maybe we are talking about different OK buttons? I am talking about the green OK button that comes after the popup. See the attached screenshot.
Comment 8•3 years ago
|
||
Yes there are 2 ok buttons, first as a warning when first opening the pdf, second button as mentioned on comment#7. Second button can be pressed only on Adobe reader, on Firefox and Chrome the button is not working for me. Indeed if pressing second button on Adobe displays the entire document.
Comment 9•3 years ago
|
||
A workaround is proposed here (i.e. disabling JS):
https://github.com/mozilla/pdf.js/issues/14308#issuecomment-979053434
Comment 10•2 years ago
|
||
Can we mark this issue as New if there is a chance to be fixed in the future?
Updated•2 years ago
|
Description
•