← 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:
> ERROR: Breaks the existing package "qpdfview-djvu-plugin"

qpdfview is split into multiple packages: The main program and packages
to support the different formats like PDF, DjVu, etc. So you need to
either upgrade all of them at once or completely uninstall first and
then install the new ones. (But since you are using a Raspberry Pi, I
guess you also need ARM builds. You might be better off building from
source then, or at least building from the source package from the
dailydebs.)

> <class 'TypeError'>: Fewer items found in D-Bus signature than in Python
arguments

The interface provides multiple overloads for each method to avoid
providing default values for all parameters but python-dbus by default
seems to choose the first one without the additional arguments. You have
to resolve this ambiguity by explicitly specifying the signature using
an additional keyword argument, e.g.

iface.open(file_path, n, signature='si')

where the procedure to build the signature string is given here:
https://dbus.freedesktop.org/doc/dbus-python/tutorial.html#data-types

Please also note that "open" will only work if there is already an
existing tab. If you do not care whether a new tab needs to be created,
or an existing one made current, the "jumpToPageOrOpenInNewTab" method
is generally the first choice.

Best regards,
Adam

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