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

javascript for zoom

Explorer ,
Nov 21, 2024 Nov 21, 2024

What happened to being able to run a javascript for zoom, e.g., zoom = 150 ; ? If I try to use this now with Adobe Pro, the option is to cancel or go to a page. I used to be able to highlight the bookmarks, select properties, and add the javascript. Even on older docs now, it is not working and for some reason the page level as a set zoom level, e.g., fit width, actual size, etc., that cannot be deleted to the javascript will run.

TOPICS
JavaScript
539
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 ,
Nov 21, 2024 Nov 21, 2024

You don't have these options in the action tab of the bookmark properties?

PDFAutomationStation_0-1732201191216.pngexpand image

 

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
Explorer ,
Nov 21, 2024 Nov 21, 2024

Thank you for yoour response. Yes, I do; however, it does not function as it used to function. See below. With the editor, I used to be able to apply the zoom to all the bookmarks. Even setting the initial view magnification to a certain level does not get applied to all the pages.

javablood_0-1732202674418.pngexpand imagejavablood_1-1732202691603.pngexpand image

 

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 ,
Nov 21, 2024 Nov 21, 2024

If you want to add the script to all the bookmarks, you have to first select all the bookmarks.

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
Explorer ,
Nov 21, 2024 Nov 21, 2024

I have selected them all

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 ,
Nov 21, 2024 Nov 21, 2024

You need to resize the window and then the OK button should appear.

Also, go to Preferences - General and set "Scale for Screen" to "Auto-Detect".

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
Explorer ,
Nov 21, 2024 Nov 21, 2024

Thanks. Resizing got me to the okay button. Already had the scale to screen on auto detect

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 ,
Nov 21, 2024 Nov 21, 2024

I didn't understand that what you were saying is that you couldn't see the OK button.  Thanks to @try67 's response, I understand now.  Another solution is to change the JavaScript editor to an external JavaScript editor.  I use Notepad instead of the Acrobat JS editor.  Go to Edit>Preferences (JavaScript category) then find the file that runs the plain text editor you want to use:

PDFAutomationStation_0-1732207864301.pngexpand image

 

 

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
Explorer ,
Nov 21, 2024 Nov 21, 2024

I will try that. Thanks.

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 ,
Nov 21, 2024 Nov 21, 2024

If you change it to Notepad, there's no OK button.  You simply close the window and click "Yes" to "Do you want to save....".  Notepad holds a lot more data than the built-in editor and has more features like Find and Replace.

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
Explorer ,
Nov 22, 2024 Nov 22, 2024

Thanks

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 ,
Nov 22, 2024 Nov 22, 2024

Often the right answer comes from abandoning the ‘wrong’ question.
In the document properties, set the document to open at 150%.
Then select all the bookmarks and use the ‘Inherit zoom’ option.

 

What's more, it will be more user-friendly for those who, for one reason or another (the size of their screen), don't want to always navigate at 150%.


Acrobate du PDF, InDesigner et Photoshoptographe
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
Explorer ,
Nov 22, 2024 Nov 22, 2024
LATEST

Thanks for the alternative.

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