← Back to team overview

qpdfview team mailing list archive

NPAPI plug-in using qpdfview's DocumentView class

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I tried out the "qtbrowserplugin" solution and was able to create a
very simple plug-in that uses qpdfview's DocumentView class to display
a PDF file embedded in a web page. (It just downloads the complete
file and saves it as a temporary file. Not very elegant but simple.)

It is also able to receive keyboard events after gaining the focus but
I just mapped space/backspace to next/previous page and F12 to the
presentation mode to try this out. (QApplication::setActiveWindow has
to be forced because of X11Embed problems...)

There is also the problem that the plug-in's QApplication does not
have organization and application name set, so that the settings are
not correctly loaded and stored. (Maybe one should just add this in
the initialization code of "qtbrowserplugin_x11.cpp".)

The code is available on Launchpad at
"lp:~adamreichold/qpdfview/plugin". One needs a copy of the trunk
source code and modify "qpdfplugin.pri" to pick that up.

My question would now be whether anybody is interested in picking that
up since it could be more or less maintained as a separate program and
my spare time is a bit limited.

Best regards, Adam.

P.S.: I think version 0.3.2 is more or less ready and we should
release it at the end of the month. It is mostly parts of the online
help and translations that are missing, so if you find the time.
(Translations looks a bit gruesome since the license change...)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJP+w86AAoJEPSSjE3STU341hQIAIoSOBYktR/x93+UNGedbfOP
Y+uiY7/PNm10O969L14d/WVYuJeckK6vkHyHRsmqboDDou1UPBPN15SUv+zkQiZP
ZMWDQYn1/mlJ/2jhh7Lj3yXuDRhvFEMVC8aJ7TpwqDXcbOKTh2+NzNTdurucr1OO
u5e4RLa3PeP+qnc37NGuwzmYlTAkL8IUr1sQD+WUNAJccezHZ2dg9xnl4EkaLpWu
VSGI5qM792ppMUkoQG9pTW/1uy+N+LGYCV6pttcDGDm9LVzAckn4xPh4aTh/cuN2
QCb+Tr+hj6MEETRD0oUo/FIYliTFtiMRvYLq8tW8dkuDtDYiDlYuMh7oHOqo/+Q=
=Yef+
-----END PGP SIGNATURE-----


Follow ups