Re: wx_4.0.0a1 : demo->PDFViewer
David Hughes <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
The version of wx/lib/pdfviewer/viewer.py in wxPython-4.0.0a1 was tested using PyMuPDF 1.92 and Python 3.4 on both Windows 10 and OS X in July 2016. The Windows machine has since been rebuilt with the March 2017 release of Windows 10 and has Python 3.6. I have just installed the pre-built Windows version of PyMuPDF 1.10.0.0 there from https://github.com/JorjMcKie/PyMuPDF-optional-material which has the associated comment "Defaulting alpha=True b/o backward compatibility" and the pdf viewer works fine with it. On the line you refer to, in the call to wx.Bitmap.FromBufferRGBA(pix.width, pix.height, pix.samples) the len of pix.samples is width * height * 4. Maybe your version of PyMuPDF is not compatible with the MuPDF you have built. The dialogue going on at https://github.com/rk700/PyMuPDF/issues/90 might be relevant. Regards David Hughes -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.