I am looking for a way to prepare pdf file which runs additional script when opened at linux. For example:
$ evince example.pdf
--- Hello, world! ---
(evince:11876): Gtk-CRITICAL **: gtk_widget_show: assertion 'GTK_IS_WIDGET (widget)' failed //usual stuff from log stream
Is there any way to do thing like this? Let's say that file is marked as executable etc etc.