Welcome to qpageview!¶
qpageview provides a page based document viewer widget for Qt6/PyQt6.
It has a flexible architecture potentionally supporting many formats. Currently, it supports PDF and SVG documents and several image formats.
import qpageview
from PyQt6.QtWidgets import *
a = QApplication([])
v = qpageview.View()
v.show()
v.loadPdf("path/to/afile.pdf")
a.exec()
Homepage • Development • Download • Documentation • License
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.7+
Qt 6.6+
PyQt6
pycups (optionally, needed to print to a local CUPS server)
This manual documents qpageview version 1.0.1. Last update: Jul 04, 2025.
Contents
- Basic usage
- Advanced usage
- Interacting with pages
- How rendering works
- Overview of all modules
- The main qpageview module
- The backgroundjob module
- The cache module
- The constants module
- The cupsprinter module
- The diff module
- The document module
- The export module
- The highlight module
- The image module
- The imageview module
- The layout module
- The link module
- The locking module
- The magnifier module
- The multipage module
- The page module
- The pdf module
- The pkginfo module
- The printing module
- The rectangles module
- The render module
- The rubberband module
- The scrollarea module
- The selector module
- The shadow module
- The sidebarview module
- The svg module
- The util module
- The viewactions module
- The view module
- The widgetoverlay module