pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maruan Sahyoun <sahy...@fileaffairs.de>
Subject Re: How to make the PDF document open with the Navigation Pane open?
Date Wed, 21 Oct 2015 16:33:22 GMT

it's not part of the Viewer Preferences so can not be set in the PDF directly. You could inject
a JavaScript which is executed when the document opens. As short sample for such JavaScript
is available in the examples package for PDFBox 2.0.0 under org.apache.pdfbox.examples.interactive.form.UpdateFieldOnDocumentOpen.

The issue with executing menu items is that this is a restricted function so it might be available
if the PDF is not certified. Lookup the function execMenuItem in the Acrobat SDK JavaScript


> Am 21.10.2015 um 18:17 schrieb Gary Grosso <gary.grosso@oberontech.com>:
> I am looking for a way to say in a PDF document that it should open with the Navigation
Pane open. Not sure if this is even possible; it may strictly be a user preference.
> Thanks,
> Gary Grosso

To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org

View raw message