Platform: Linux, GTK+
Tools: Python, PyGTK and Glade.
Problem:
- I’d like to write a program that is capable of displaying a PDF file.
Question:
- Which widget(s) and Python module(s) do I need?
Thanks for any suggestions!
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.
look into the python poppler bindings.
I render pdf files in a simple dirty way. I copied the method used in the example for the python poppler gtk bindings
Its not the best or prettiest but it works. I still have to add how to make it scrollable or center in the drawing area and stuff like that but there is a start.
you could also look into the evince python bindings, I do believe they have a widget you can use for to make pdf rendering easier. I’m on developing on windows so I haven’t used it if there is one.