Skip to content

PdfDocument

Qt Base Class: QPdfDocument

Signature: QPdfDocument(self) -> None QPdfDocument(self, parent: PySide6.QtCore.QObject) -> None

Base classes

Name Children Inherits
ObjectMixin
prettyqt.core.object
QPdfDocument
PySide6.QtPdf
QPdfDocument(self) -> None

⋔ Inheritance diagram

graph TD
  1473572185184["pdf.PdfDocument"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473572205680["QtPdf.QPdfDocument"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473299815024 --> 1473572185184
  140713234304496 --> 1473299815024
  1473572205680 --> 1473572185184
  1473288842240 --> 1473572205680
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: ObjectMixin, QPdfDocument

Loads a PDF document and renders pages from it.

Source code in prettyqt\pdf\pdfdocument.py
class PdfDocument(core.ObjectMixin, QtPdf.QPdfDocument):
    """Loads a PDF document and renders pages from it."""

    def get_error(self) -> ErrorStr:
        """Return current error.

        Returns:
            page mode
        """
        return ERROR.inverse[self.error()]

    def get_status(self) -> StatusStr:
        """Return current status.

        Returns:
            zoom mode
        """
        return STATUS.inverse[self.status()]

get_error() -> ErrorStr

Return current error.

Source code in prettyqt\pdf\pdfdocument.py
def get_error(self) -> ErrorStr:
    """Return current error.

    Returns:
        page mode
    """
    return ERROR.inverse[self.error()]

get_status() -> StatusStr

Return current status.

Source code in prettyqt\pdf\pdfdocument.py
def get_status(self) -> StatusStr:
    """Return current status.

    Returns:
        zoom mode
    """
    return STATUS.inverse[self.status()]

⌗ Property table

Qt Property Type Doc
objectName QString
pageCount int
password QString
status QPdfDocument::Status
pageModel QAbstractListModel