*About the QWebEngineView class*
The revised VR plugin uses the QWebEngineView
<https://doc.qt.io/qt-6/qwebengineview.html> class for all html-related
nodes. This class is a wrapper around the Chromium
<https://www.chromium.org/Home/> open-source browser. This browser should
have enough firepower.
Alas, Qt's support for pdf files uses a *hidden pdf plugin*. This plugin is
*inaccessible* via any programming API. Hours of googling and
experimentation failed to find any access points.
If you want to set the initial zoom factor, which is the main problem I've
had to deal with, you can add a fragment identifier to the QUrl, like this:
url = QUrl.fromLocalFile(pdf_path)
url.setFragment("zoom=200")
There are a few other settings that can be set with a fragment identifier.
See Section 3 here <https://www.rfc-editor.org/rfc/rfc8118>.
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/leo-editor/c30b4939-b94b-4baa-8f61-c03ec4d7a642n%40googlegroups.com.