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

Dynamically batch change document properties

New Here ,
Apr 06, 2018 Apr 06, 2018

Copy link to clipboard

Copied

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

Views

521

Translate

Translate

Report

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.

Votes

Translate

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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,

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Only JS can work with conditions.

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

Votes

Translate

Translate

Report

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