Roshanpaswan / tkPDFViewer

The tkPDFViewer is python library developed by Roshan Paswan, which allows you to embed the PDF file in your tkinter GUI.
MIT License
14 stars 9 forks source link

Deprecation Warning #6

Open claudialorusso opened 2 years ago

claudialorusso commented 2 years ago

Hi! I'm encountering two deprecation warnings while using your library:

Deprecation: 'getPixmap' removed from class 'Page' after v1.19 - use 'get_pixmap'. Deprecation: 'getImageData' removed from class 'Pixmap' after v1.19 - use 'tobytes'

Could you please solve this?

Anyway, thanks for your hard work 💪

YasserKhalilExcelEgy commented 2 years ago

I have the same problem.

LlamaFu commented 2 years ago

FYI, It's officially depreciated, and the example code will no longer run (for me at least). File "c:\tkPDFViewer.py", line 46, in add_img pix = page.getPixmap() AttributeError: 'Page' object has no attribute 'getPixmap'

Thanks!

keisanng commented 1 year ago

I patched it in my fork https://github.com/kikoooooooo/tkPDFViewer. I'm not to familiar with contributing on GitHub so I don't know how to fix it in this repo.