Skip to content

Improve support for Adobe PDF open parameters

Germán Poo-Caamaño requested to merge wip/gpoo/cherry-picks-from-main into gnome-46

This commit adds partial support for Adobe PDF open parameters[1], specifically we added the "page" and "nameddest" parameters, which are similar to Evince's --named-dest and --page-label commandline options respectively.

Some examples of the new parameters supported:

Evince previously only supported a number-only parameter for opening a page upon loading the document, eg:

This support is kept.

Evince already supported passing a file URI in addition to a filename, but the number-only page parameter didn't work when using it in a URI (as described in #2044 (closed)) nor did it work when opening a pdf URI from within an existant pdf (see testcase pdf in here[2]).

So, this commit fixes those issues and also updates the Evince man page to:

  • Inform of new page and nameddest open parameters.
  • Inform that a file URI can also be passed.
  • Fix dead links.

[1] https://helpx.adobe.com/acrobat/kb/link-html-pdf-page-acrobat.html [2] GNOME/Incubator/papers#222 (comment 2197697)

Fixes #2044 (closed)

Merge request reports

Loading