Page 1 of 1

Default PDF bookmark state

Posted: Fri Oct 01, 2021 7:48 am
by mdslup
I need to generate a PDF where the bookmark bar exists, but is COLLAPSED by default.

The page below explains how to *remove* bookmarks, and how to set what level of bookmarks are expanded.

https://www.oxygenxml.com/doc/versions/ ... mark_state

Neither of those is what I want. I want the bookmarks bar to exist, but be collapsed by default. In other words, I want to force the user to open the bookmarks bar themselves.

Re: Default PDF bookmark state

Posted: Fri Oct 01, 2021 10:40 am
by julien_lacour
Hello,

We added the support for controlling the PDF Viewer in Oxygen 24.0, with this new version you can collapse the bookmark menu by using the following rule:

Code: Select all

:root {
  -oxy-pdf-viewer-page-mode: use-none;
}
This version will be available soon (in a few weeks) so stay tuned!

Regards,
Julien