We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Attach (recommended) or Link to PDF file here: PDF document with some JS inside
Configuration:
Steps to reproduce the problem:
Open the attached document.
Contained JS code in the PDF document:
this.pageNum = this.numPages ; function GoToFirstSlide(label) { this.pageNum = 0 ; } function GoToLastSlide(label) { this.pageNum = this.numPages ; } function GoToNextSlide(label) { ++this.pageNum ; } function GoToPreviousSlide(label) { --this.pageNum ; } function SwitchFS() { if (app.fs.isFullScreen == true) app.fs.isFullScreen = false ; else app.fs.isFullScreen = true ; }
Neither buttons nor even the first line works.
What is the expected behavior? (add screenshot)
PDF.js should open page 25 (the last one) instead of page 1 (the first one).
What went wrong? (add screenshot)
JavaScript seems not to be implemented at all.
Many thanks for your help.
The text was updated successfully, but these errors were encountered:
JavaScript is implemented for fields (see https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf#page=440&zoom=auto,-215,499) but not for annotations. It shouldn't be that hard to do but it's likely some work.
Sorry, something went wrong.
Many thanks for your reply, @calixteman.
I thought that this.pageNum = this.numPages ; wasn’t related to annotations.
this.pageNum = this.numPages ;
But I must admit I don’t know how JS works in PDF documents.
No branches or pull requests
Attach (recommended) or Link to PDF file here:
PDF document with some JS inside
Configuration:
Steps to reproduce the problem:
Open the attached document.
Contained JS code in the PDF document:
Neither buttons nor even the first line works.
What is the expected behavior? (add screenshot)
PDF.js should open page 25 (the last one) instead of page 1 (the first one).
What went wrong? (add screenshot)
JavaScript seems not to be implemented at all.
Many thanks for your help.
The text was updated successfully, but these errors were encountered: