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

--- Comment #6 from John Scott <[email protected]> ---
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 watching all bug changes.

Reply via email to