Qt5PDFViewer icon indicating copy to clipboard operation
Qt5PDFViewer copied to clipboard

PDF Viewer with Pyqt5 and pdfjs or QtWebengine

Qt5PDFViewer

PDF Viewer with Pyqt5 and pdfjs

Requirements:

  • PyQt5
  • python3
  • pdf.js

download the latest stable version of pdf.js from the PDF JS Page

extract it to the same folder where the script is.

Usage:

python3 myPDFViever.py /path/to/pdf_file

using QWebEngineView - myPDFViewer2.py

PyQt5 can now show PDF with QWebEngineView

python3 myPDFViever2.py /path/to/pdf_file