Dynamically batch change document properties

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.

Only JS can work with conditions.

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

TOPICS
Acrobat SDK and JavaScript

Views

153

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

Dynamically batch change document properties

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.

Only JS can work with conditions.

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

TOPICS
Acrobat SDK and JavaScript

Views

154

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
Apr 06, 2018 0
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
Reply
Loading...
Apr 06, 2018 1
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
Reply
Loading...
Apr 06, 2018 0
Apr 06, 2018

Copy link to clipboard

Copied

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
Reply
Loading...
Apr 06, 2018 1