← Back to team overview

qpdfview team mailing list archive

Re: [Question #695206]: Fullscreen option per script?

 

Question #695206 on qpdfview changed:
https://answers.launchpad.net/qpdfview/+question/695206

    Status: Open => Answered

Adam Reichold proposed the following answer:
Hello Alfred,

the intended way for qpdfview to be scripted is via its D-Bus [1]
interface. Sadly, this is not properly documented but I the names are
rather self explanatory. You should be able to explore and test this way
of controlling qpdfview by starting "qpdfview --unique" (this is the
default when started via a desktop environment) and then running
qdbusviewer.

If you search for "qpdfview" on the session bus, you should find a
"local.qpdfview" service which provides "MainWindow/" object that
implements the "local.qpdfview.MainWindow" interface which includes both
"fullscreen" and "presentation" methods.

The answers to question [2] include an example of how to automate access
to this interface via a Python script but the general principle should
be the same in your preferred scripting/programming language.

As another caveat, while this can be used to trigger the presentation
view, controlling the presentation view is not yet implemented
(basically just because nobody asked for it).  There is also currently
no method to end the application itself (this can be achieved by sending
SIGTERM via the kill command), but that should be easy to add.

Best regards,
Adam

[1] https://en.wikipedia.org/wiki/D-Bus

[2] https://answers.launchpad.net/qpdfview/+question/404154

-- 
You received this question notification because your team qpdfview is an
answer contact for qpdfview.