[okular] [Bug 436870] Document Catalog OpenAction not respected

John Scott bugzilla_noreply at kde.org
Wed Jul 22 02:52:32 BST 2026


https://bugs.kde.org/show_bug.cgi?id=436870

--- Comment #6 from John Scott <jscott at posteo.net> ---
Created attachment 194506
  --> https://bugs.kde.org/attachment.cgi?id=194506&action=edit
minimal example PDF using OpenAction to invoke JavaScript

Here is an example PDF I alluded to. It can be seen with Poppler's 'pdfinfo -js
minimal.pdf' to show:
> Open Document Action:
> app.alert({cMsg: "Ahoy"});

Here's some LaTeX source that can be built with pdflatex in the straightforward
way to create it:

\DocumentMetadata{uncompress}
\documentclass{minimal}
\usepackage{navigator,pdfprivacy}

\begin{document}
% app.alert() is implemented in Okular's js_app.cpp
\javascriptaction{fooaction}{app.alert({cMsg: "Ahoy"});}
\setparameterlist{navigator}{openaction=fooaction}
\null
\end{document}

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list