<div dir="ltr"><div class="gmail_default" style="font-family:garamond,serif">Justin, you could try Poppler. There is a version for PyQt5 (version >= 5.4) here:</div><div class="gmail_default" style="font-family:garamond,serif"><a href="https://pypi.org/project/python-poppler-qt5/">https://pypi.org/project/python-poppler-qt5/</a></div><div class="gmail_default" style="font-family:garamond,serif">Tom<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 30, 2020 at 5:04 PM Florian Bruhin <<a href="mailto:me@the-compiler.org">me@the-compiler.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Jun 30, 2020 at 02:28:12PM +0200, Justin Giffard wrote:<br>
> I have tried a webview in the past which seemed to work okay<br>
<br>
FWIW since Qt 5.13, QtWebEngine can show PDFs using Chromium's PDFium viewer:<br>
<a href="https://doc.qt.io/qt-5/qtwebengine-features.html#pdf-file-viewing" rel="noreferrer" target="_blank">https://doc.qt.io/qt-5/qtwebengine-features.html#pdf-file-viewing</a><br>
<br>
> but Paolo came across a C++ QT5 example that made use of a QPdfDocument which<br>
> I later found was held by the QPdfView. This had me excited until I found<br>
> that it would seem that this is not implemented in PyQT5. Damn another brick<br>
> wall.<br>
<br>
Qt PDF uses the same PDFium viewer from QtWebEngine internally as well - but I<br>
think it's still a Qt Labs "work in progress" thing at the moment.<br>
<br>
Florian<br>
<br>
-- <br>
<a href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a> (Mail/XMPP) | <a href="https://www.qutebrowser.org" rel="noreferrer" target="_blank">https://www.qutebrowser.org</a> <br>
       <a href="https://bruhin.software/" rel="noreferrer" target="_blank">https://bruhin.software/</a> | <a href="https://github.com/sponsors/The-Compiler/" rel="noreferrer" target="_blank">https://github.com/sponsors/The-Compiler/</a><br>
       GPG: 916E B0C8 FD55 A072 | <a href="https://the-compiler.org/pubkey.asc" rel="noreferrer" target="_blank">https://the-compiler.org/pubkey.asc</a><br>
             I love long mails! | <a href="https://email.is-not-s.ms/" rel="noreferrer" target="_blank">https://email.is-not-s.ms/</a><br>
</blockquote></div>