<div dir="ltr">Hi Olaf<br><br>Just checking in terms of your code. Are you displaying the actual PDF file that's generated or are you displaying the original HTML? My current use is I have generated a PDF with tables and barcodes and such using ReportLab. So I would need to load and display that PDF.<br><br>Justin</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 30, 2020 at 2:43 PM Olaf Art Ananda <<a href="mailto:artanidos@gmail.com">artanidos@gmail.com</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"><div dir="auto">Hey Justin<div><br></div><div>Have a look at my EbookCreator <a href="https://github.com/Artanidos/EbookCreator" target="_blank">https://github.com/Artanidos/EbookCreator</a></div><div>I am using weasyprint to render PDF and I have got a HTML based preview. </div><div>Maybe that gives you an idea. </div><div><br></div><div>Art</div><div><br></div></div><div style="line-height:1.5"><br><br>-------- Ursprüngliche Nachricht --------<br>Von: Justin Giffard <<a href="mailto:jusgif@gmail.com" target="_blank">jusgif@gmail.com</a>><br>Datum: Di., 30. Juni 2020, 13:28<br>An: <a href="mailto:pyqt@riverbankcomputing.com" target="_blank">pyqt@riverbankcomputing.com</a><br>Betreff: Rendering PDF in PyQT5<br><blockquote><div dir="ltr">Hi there<br><br>Asked recently about a print preview in PyQT5 and Paolo attempted to help me but we came to the conclusion that there's no real way to do this out of the box. I then started investigating making my own print preview screen but we can't really find a decent way to do it display the PDF. I have tried a webview in the past which seemed to work okay but Paolo came across a C++ QT5 example that made use of a QPdfDocument which I later found was held by the QPdfView. This had me excited until I found that it would seem that this is not implemented in PyQT5. Damn another brick wall.<br><br>Can anyone make any suggestions on this?<br><br>Justin</div>
</blockquote></div></blockquote></div>