I have a wxPython GUI. I would like to display the pdf object as an image inside a wxPanel on Mac/UNIX. What would I use?
Any advice or suggestions would be appreciated. Thank you in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is wxPDF:
http://wxcode.sourceforge.net/components/wxpdfdoc/
You can write your own wrapper for python if you are good enough with C++.
Or you can try:
http://www.wxpython.org/docs/api/wx.lib.pdfwin-module.html
But that needs acrobat installed on the users system.
edit:
You could also use pdf2ps to convert every page (called from commandline so you don’t violate the GPL if you are not releasing under GPL) and convert that to a png file with ghostscript.
Not very elegant, but probably the best approach without using acrobat.