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

159

Likes

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

Most Valuable Participant , 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.

Likes

Translate

Translate
Most Valuable Participant ,
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.

Likes

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,

Likes

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
Most Valuable Participant ,
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.

Likes

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