|
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.aspxBest regards. Klaas
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
Hi, Please see if this property is what you are looking for: https://www.essentialobjects.com/doc/eo.pdf.pdfviewerpreference.initialdestination.aspxYou 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.aspxHope this helps. Please feel free to let us know if you have any more questions. Thanks!
|
|
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/287543Can I do that? Is the "Navigation tab" property exposed somewhere?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
|
|
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!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
Hi,
I do not believe that's possible with our product.
Thanks
|
|
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.
|
|