Skip to main content
Participant
April 6, 2018
Answered

Dynamically batch change document properties

  • April 6, 2018
  • 2 replies
  • 768 views

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.

This topic has been closed for replies.
Correct answer try67

Only JS can work with conditions.

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

2 replies

Participant
April 6, 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?

Thanks,

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
April 6, 2018

Only JS can work with conditions.

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

try67
Community Expert
Community Expert
April 6, 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.