qpdfview team mailing list archive
-
qpdfview team
-
Mailing list archive
-
Message #00931
Re: [Question #404154]: How can I start qpdfview, from commandline, into presentation mode?
Question #404154 on qpdfview changed:
https://answers.launchpad.net/qpdfview/+question/404154
Adam Reichold posted a new comment:
Hello,
just for completeness and future reference, following the dbus-python
tutorial at [1], the following Python script will open a file given as a
command line argument in qpdfview without raising qpdfview's window:
echo >jtpooint.py <<EOF
#!/usr/bin/env python2
import sys
import dbus
from os.path import abspath
if len(sys.argv) != 2:
print 'usage: %s file_name' % sys.argv[0]
file_path = abspath(sys.argv[1])
bus = dbus.SessionBus()
proxy = bus.get_object('local.qpdfview', '/MainWindow')
iface = dbus.Interface(proxy, 'local.qpdfview.MainWindow')
iface.jumpToPageOrOpenInNewTab(file_path)
EOF
--
You received this question notification because your team qpdfview is an
answer contact for qpdfview.