Closed jekoie closed 7 years ago
which PDF software have you installed? If it is PyMuPDF: I just confirmed that it does work with e.g. Python 3.6 64bit, wxPython 4.0.0rc1 (msw (phoenix)) using the demo software.
i installed Adobe Reader Xl and run on python2.7, wxpython4.0.0b1 msw(phonenix); the PDFWindow can't load the pdf file when the filename contains chiness characters; but if the filename compose by ascii chars, it works well.
we are not talking about the same thing: wx.lib.pdfviewer works either with PyMuPDF or PyPDF2. One of the two is required to display PDF files under wxPython. Adobe is not - it plays no role here. wx.lib.pdfviewer first tries to load PyMuPDF, then PyPDF2. If this works for you in some cases, then you must at least have PyPDF2, right?
i use wx.lib.pdfviewer and install pymupdf, it work pretty well. ^-^
我对你非常感谢,哈哈; thanks very much.
filepath: E:\book\精通Python设计模式 高清晰PDF.pdf [u'E:\book\\u7cbe\u901aPython\u8bbe\u8ba1\u6a21\u5f0f \u9ad8\u6e05\u6670PDF.pdf']
The PDFWindow could not load the pdf file that path is unicode???