Welcome Guest Search | Active Topics | Sign In | Register

PDF Bookmarks tab Options
Klaas
Posted: Monday, December 10, 2018 4:56:16 AM
Rank: Member
Groups: Member

Joined: 10/30/2018
Posts: 10
Hi.

How can I control which windows or tab are initially visible when the pdf is first opened?
That is, automatically setting the properties as mentioned here:

https://answers.acrobatusers.com/How-do-I-get-a-pdf-file-to-automatically-open-with-the-bookmarks-showing-q90463.aspx

Best regards.
Klaas
eo_support
Posted: Monday, December 10, 2018 11:48:11 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Hi,

Please see if this property is what you are looking for:

https://www.essentialobjects.com/doc/eo.pdf.pdfviewerpreference.initialdestination.aspx

You would use it this way:

Code: C#
doc1.ViewerPreference.InitialDestination = destination;


Here destination would be a PdfDestination object that you can get elsewhere. For example, you can use this property to get the destination of a PdfBookmark object:

https://www.essentialobjects.com/doc/eo.pdf.pdfbookmark.destination.aspx

Hope this helps. Please feel free to let us know if you have any more questions.

Thanks!
Klaas
Posted: Tuesday, December 11, 2018 3:06:26 PM
Rank: Member
Groups: Member

Joined: 10/30/2018
Posts: 10
Yeah. Ok. That's not the solution. It solved a different problem for me, so thanks. :)
What I need is setting the property mentioned here:

https://forums.adobe.com/thread/287543

Can I do that? Is the "Navigation tab" property exposed somewhere?
eo_support
Posted: Tuesday, December 11, 2018 4:22:17 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Klaas
Posted: Tuesday, December 11, 2018 5:08:09 PM
Rank: Member
Groups: Member

Joined: 10/30/2018
Posts: 10
Hi.

Thanks. UseOutlines did the trick.
And if I wanna open the tab with the bookmarks expanded? Is that possible?

Thanks for the great support!
eo_support
Posted: Wednesday, December 12, 2018 12:38:27 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Hi,

I do not believe that's possible with our product.

Thanks
Klaas
Posted: Thursday, December 13, 2018 3:26:54 AM
Rank: Member
Groups: Member

Joined: 10/30/2018
Posts: 10
Ok. That's too bad.

What about doing it with a PdfAction?
I tried setting a PdfJavaScriptAction as an OpenAction, but it doesn't look like its being executed at all.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.