Skip to main content
JR Boulay
Community Expert
Community Expert
February 19, 2020
Question

JavaScript to set an Initial Vue option

  • February 19, 2020
  • 4 replies
  • 817 views

Hi

 

Can I use JavaScript to set the Initial Vue of a PDF to "Pages Panel and Pages"?

I know that I can do it at the document opening or using the Action Wizard but I want to include this in a larger script.

Thank you

This topic has been closed for replies.

4 replies

JR Boulay
Community Expert
JR BoulayCommunity ExpertAuthor
Community Expert
February 19, 2020

That's what i was afraid of.

In fact, I wanted to convert an Action into a Custom Command, but a Custom Command embeds only 1 command, it can be a JavaScript OR a "Set Open Options", not both.

 

Thank you all, your support is precious.

Acrobate du PDF, InDesigner et Photoshopographe
Thom Parker
Community Expert
Community Expert
February 19, 2020

Whenever I need to change some small settings for an automation script, settings that are not covered in the JS model, I write a plug-in for it.  Of course this is platform dependent. 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
February 19, 2020

You can't change the actual Initial View settings with a script, but you can force the Pages panel to show, as was described above.

Bernd Alheit
Community Expert
Community Expert
February 19, 2020

At document open use this:

this.pane = "T";