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

Dynamically batch change document properties

New Here ,
Apr 06, 2018 Apr 06, 2018

How can I batch change document properties (i.e. initial view -> navigation tab) dependant on whether the pdf has a bookmark or not?
Javascript seems perfect for this, but apparently document properties cannot be changed with Javascript.

TOPICS
Acrobat SDK and JavaScript
722
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

correct answers 1 Correct answer

Community Expert , Apr 06, 2018 Apr 06, 2018

Only JS can work with conditions.

And no, that action doesn't use JS to make those changes. It changes the file directly.

Translate
Community Expert ,
Apr 06, 2018 Apr 06, 2018

No, they can't be edited using JS. You can add a script to the file that changes the view setting when the file is opened, but you can't change the actual Initial View options with it.

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 ,
Apr 06, 2018 Apr 06, 2018

Thank-you @try67.

I am able to run an action with the Action Wizard in Pro DC to do this, however this sets the properties regardless of whether there's a bookmark or not.

Does this action effectively add a script to the file? Or is this done some other way?

actionWizard.png

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 ,
Apr 06, 2018 Apr 06, 2018
LATEST

Only JS can work with conditions.

And no, that action doesn't use JS to make those changes. It changes the file directly.

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