Skip to main content
Participant
June 15, 2025
Question

Multiple Choice Prompt to Display Different Pages in PDF

  • June 15, 2025
  • 4 replies
  • 215 views

Hi,

I am wondering if it is possible through API development to create a pop-up prompt when someone first opens a PDF with multiple choices. And depending on the choice selected, the PDF would then navigate to the pertinent page. Ideally, it would be even better if I could make something like this work with a PDF Portfolio and have it navigate to a specific document in the portfolio.

 

For example, I would like it to prompt the user to ask what language they would like to view the document in. Upon selection, it would navigate to the document in the selected language. 

 

I am less-than-savvy with coding, but willing to do the research and put in the elbow grease so long as I know the functionality is there.

4 replies

Participant
June 16, 2025

Yeah, same things

PDF Automation Station
Community Expert
Community Expert
June 16, 2025

Use a popup dialog in a document level script to select the language and then simply set navigate to the page number like this:

this.pageNum=101;

The script above will go to page 100 as page numbers are zero-based.  I believe PDF Portfolio navigation to specific documents can only be done by the user interface, not by script.  However, you can use attachments to the main document like a portfolio and create your own navigation system with JavaScript.  There are other methods you could use as well, like creating template pages for the different languages and spawning those templates when the document is opened and the language is selected, or changing layers to the different languages.  Underlined phrases in bold above contain links to articles on each subject.

JR Boulay
Community Expert
Community Expert
June 15, 2025

[Sorry, wrong post]

Acrobate du PDF, InDesigner et Photoshopographe
Nesa Nurani
Community Expert
Community Expert
June 15, 2025

It's certainly possibly using scripts at document level to trigger on document open.

More complex would be to create a custom dialogue box with language choices (checkboxes or dropdown) when user select language it jumps to that language page. Or something little bit simpler like alert on document open to point user to a dropdown field with language choices where he would select language and then it would jump to that page. Either way you would need a script.