Python Forum
[PyQt] Displaying html and pdf in a QtWidget
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] Displaying html and pdf in a QtWidget
#7
Hi Axel_Erfurt

I've been able to modify the example you provided me with. I loaded a page from the local directory where I downloaded individually each page of the greek dictionnary.

To read through the internet, I suppose I have to replace «fromUserInput» by something else in the line
self.load(QUrl.fromUserInput(f'{PDFJS}?file={PDF}'))
To record the first and last entries of each page, I'll need to reduce the size of the page window to be able to read them and key them in the PyQt5 dialog. However an icon representing the page appears in the upperleft corner and masks the first entry. Is it possible not to have it appearing ?

Do you know whether it is possible to close the page window with PyQt5 when both words are entered and validated ?

Arbiel
Reply


Messages In This Thread
Displaying html and pdf in a QtWidget - by arbiel - Dec-03-2020, 08:35 PM
RE: Displaying html and pdf in a QtWidget - by arbiel - Dec-06-2020, 05:40 PM

Forum Jump:

User Panel Messages

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