Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - Change "Documents Properties - Intial View" by JS
  FAQ FAQ  Forum Search   Register Register  Login Login

Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

Change "Documents Properties - Intial View" by JS

 Post Reply Post Reply
Author
try67 View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Points: 634
Post Options Post Options   Quote try67 Quote  Post ReplyReply Direct Link To This Post Topic: Change "Documents Properties - Intial View" by JS
    Posted: 14 Dec 2011 at 10:49am
You can't set the actual settings, but you can enforce the ones you want by embedding a script in the document that applies them, using the zoom, zoomType, layout and pageNum properties.
- Acrobat Expert - Contact me personally at try6767@gmail.com
Check out my custom-made scripts website: http://try67.blogspot.com
Back to Top
gkaiseril View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Location: USA
Points: 4111
Post Options Post Options   Quote gkaiseril Quote  Post ReplyReply Direct Link To This Post Posted: 14 Dec 2011 at 1:25am
You can not do this in Acrobat JavaScript. You can set the zoom and the nav panel when the PDF is opened or a page in opened but this is different than setiting the document properties.
 
You might want to look at PDF procucts from Arts PDF.


Edited by gkaiseril - 14 Dec 2011 at 1:28am
Back to Top
oald View Drop Down
Member
Member


Joined: 16 Sep 2011
Points: 42
Post Options Post Options   Quote oald Quote  Post ReplyReply Direct Link To This Post Posted: 13 Dec 2011 at 6:08pm
Hi aandi, thanks for your reply! Actually what I want to do is:
 
For documents more than one page, set "Documents Properties - Intial View" as:
Navigation tab: Bookmarks Panel and Page
Page layout: Default
Magnification: Default
Open to page: 1

For documents with only one page, set "Documents Properties - Intial View" as:
Navigation tab: Page Only
Page layout: Default
Magnification: Default
Open to page: 1

But I don't know how to do this by JavaScript, can you advise? Thanks a lot!

if this.numPages == 1
{
...
}
else{
...
}
My Product Information:
Acrobat Pro 8.1.6, Windows
Back to Top
aandi View Drop Down
Senior Member
Senior Member


Joined: 07 Jul 2011
Points: 18358
Post Options Post Options   Quote aandi Quote  Post ReplyReply Direct Link To This Post Posted: 13 Dec 2011 at 5:32pm
I don't know about JavaScript, but in Acrobat 8 you can achieve the other objectives using the Batch Sequence feature. Look at Document > Open options in the commands available.
Back to Top
oald View Drop Down
Member
Member


Joined: 16 Sep 2011
Points: 42
Post Options Post Options   Quote oald Quote  Post ReplyReply Direct Link To This Post Posted: 13 Dec 2011 at 4:24pm
Hi,
 
I want to change the "Documents Properties - Intial View" of multiple documents to:
 
Navigation tab: Bookmarks Panel and Page
Page layout: Default
Magnification: Default
Open to page: 1
 
I wonder if JavaScript can do this, your help and guidance are really appreciated!
My Product Information:
Acrobat Pro 8.1.6, Windows
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.031 seconds.