Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to display a pdf file
#1
Hi

I'm migrating a bash script I coded, which reads pdf files (pages of a ancient greek to french dictionnary) and displays them to the user. I tried the pipes methods, without success as the pdf viewer does not seem able to display what it get on /dev/stdin.

Has anybody an idea on how I can achieve this goal ?

Arbiel
Reply
#2
Depends a bit on which graphics package you are using.
If Tkinter, try https://www.codespeedy.com/how-to-create...ng-python/
Reply
#3
This works for me:
>>>import webbrowser as wb
>>> wb.open('test.pdf')
Reply
#4
Thank at both of you

I've tried steve_shambles's solution and I'm quite happy with it.

Arbiel
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to display <IPython.core.display.HTML object>? pythopen 3 45,932 May-06-2023, 08:14 AM
Last Post: pramod08728
Information Unable to display joystick's value from Python onto display box MelfoyGray 2 2,231 Nov-11-2020, 02:23 AM
Last Post: MelfoyGray
  Need help to display data from a file Dzib 2 3,342 Sep-26-2019, 04:12 AM
Last Post: Dzib
  export file and display cmd prompt same time jacklee26 1 2,027 Jul-24-2019, 05:15 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020