Skip to main content

Widget to display page-based documents for Qt5/PyQt5

Project description

qpageview provides a page based document viewer widget for Qt5/PyQt5.

It has a flexible architecture potentionally supporting many formats. Currently, it supports SVG documents, images, and, using the Poppler-Qt5 binding, PDF documents.

import qpageview

from PyQt5.Qt import *
a = QApplication([])

v = qpageview.View()
v.show()
v.loadPdf("path/to/afile.pdf")

HomepageDevelopmentDownloadDocumentationLicense

Features

  • Versatile View widget with many optional mixin classes to cater for anything between basic or powerful functionality

  • Rendering in a background thread, with smart priority control, so display of large PDF documents remains fast and smooth

  • Almost infinite zooming thanks to tile-based rendering and caching

  • Magnifier glass

  • Printing functionality, directly to cups or via Qt/QPrinter

  • Can display pages originating from different documents at the same time

  • Can show the difference between pages that are almost the same via color composition

  • And much more! And…all classes are extendable and heavily customizable, so it is easy to inherit and add any functionality you want.

Dependencies

  • Python 3.6+

  • Qt5

  • PyQt5

  • python-poppler-qt5 (needed for display of PDF documents)

  • pycups (optionally, needed to print to a local CUPS server)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qpageview-0.6.1.tar.gz (161.2 kB view details)

Uploaded Source

File details

Details for the file qpageview-0.6.1.tar.gz.

File metadata

  • Download URL: qpageview-0.6.1.tar.gz
  • Upload date:
  • Size: 161.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7

File hashes

Hashes for qpageview-0.6.1.tar.gz
Algorithm Hash digest
SHA256 72fdf34c22833106cad7abfe158204e13fdcc94991c2604d4417e363d2c9f6f2
MD5 2d45dee25a481436f5c98062fb353c6f
BLAKE2b-256 760abf5c09571549fa77d95eced4fb4eb5cca4f2f964542bdac89b261df6c486

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page