Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Popup Menu button doesnt work in Foxit Reader 9.2 + Marked selected Menu item

New Here ,
Dec 19, 2020 Dec 19, 2020

Hi there


Much appreciate your help on the 2 issues below:

 

1. Popup menu doesn't work in Foxit Reader 9.2

I have created a pop up menu button which can direct you to the bookmarked destination in the doc should you click on the corresponding menu item. It works just fine in Acrobat Pro DC. However, wheb opening the file in Foxit, the menu is displayed just fine but when clicking on the items, the navigation doesnt work. 
Pls see attached pdf for example.

 

2. How to mark selected menu item

This is how I want it to work: 

Once an user:

- click on a menu item that leads to the destination page, OR

- be at the destination page by simple scrolling

 

if they click on the Menu button of that page, they will see the corresponding menu item and all of its parent menu items marked. The mark can be either a check before the text or bold text.

 

For example: Take a look at the picture:

If the user is on page Test 0, then when they click on the Menu button of this page, they will see all "Test A", "Test A.1" and "Test 0" marked.

 

Thank you guys in advance!

TOPICS
Create PDFs , How to , JavaScript , PDF forms
1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 19, 2020 Dec 19, 2020
  1. Contact the support of Foxit Reader.
  2. Not possible with popup menu.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 19, 2020 Dec 19, 2020

1. Agreed

2. That is possible, actually, but would require a more complex script that will set the bMarked property of each item in the drop-down based on the current pages number and on a list of pages in each category.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 19, 2020 Dec 19, 2020

1. Agreed

2. Why do you want to reinvent the wheel? You are trying to reproduce the way bookmarks work (bookmarks works fine with Foxit too).


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 19, 2020 Dec 19, 2020

Thank you all for your response.

 

Regarding the 1st issue, I have experienced it before. Back then I used the app.popupmenu function to create the menu and its submenu. It worked fine in Acrobat but displayed only the main menu (no submenu) in Foxit. When I changed to app.popupmenuEx, the display is fine in both viewers. 

So I suppose there must be a function to execute the menu item that works in both Acrobat and Foxit.

 

For some background, I have absolutely no experience with javascript. I just googled what I want to do, then try to read the codes I find + modify them so that I get the desired outcome. So pls bear with me 🙂

 

The reason why I wanna create a menu button is because the end-result pdf is circulated to a huge audience (thousands) and I cant make sure they all know about the bookmark tab. So I figure it's easier to create a menu button on each page for them to navigate.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 20, 2020 Dec 20, 2020

app.popupmenu is obsolet.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 21, 2020 Dec 21, 2020
LATEST

You can set a PDF to display the bookmarks panel when opening.

It works fine with Foxit too.

 

Capture_66.png


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines