Skip to content

PythonQt.QtGui.QPdfWriter · declarations 001

Back to PythonQt.QtGui.QPdfWriter

creator

creator() -> str

X.creator() -> str

Supplemental documentation: Qt 5 reference:

QString QPdfWriter::creator() const

Returns the creator of the document.

See also setCreator().

Upstream PySide2 reference signatures (binding differences may apply):

creator(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#creator

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QPdfWriter.destroyed; argument details are not documented.

devicePageLayout

devicePageLayout() -> Any

X.devicePageLayout() -> PythonQt.QtGui.QPageLayout

margins

margins() -> Any

X.margins() -> PythonQt.QtGui.QPagedPaintDevice::Margins

metric

metric(id: Any) -> int

X.metric(id) -> int

Upstream PySide2 reference signatures (binding differences may apply):

metric(self, id: PySide2.QtGui.QPaintDevice.PaintDeviceMetric) -> int

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#metric

newPage

newPage() -> bool

X.newPage() -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QPdfWriter::newPage()

Reimplements: QPagedPaintDevice::newPage().

Upstream PySide2 reference signatures (binding differences may apply):

newPage(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#newPage

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QPdfWriter.objectNameChanged; argument details are not documented.

pageLayout

pageLayout() -> Any

X.pageLayout() -> PythonQt.QtGui.QPageLayout

Supplemental documentation: Qt 5 reference:

QPageLayout QPdfWriter::pageLayout() const

Returns the current page layout. Use this method to access the current QPageSize, QPageLayout::Orientation, QMarginsF, fullRect() and paintRect().

Note that you cannot use the setters on the returned object, you must either call the individual QPdfWriter methods or use setPageLayout().

This function was introduced in Qt 5.3.

See also setPageLayout(), setPageSize(), setPageOrientation(), and setPageMargins().

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#pageLayout

pageSize

pageSize() -> Any

X.pageSize()

pageSizeMM

pageSizeMM() -> Any

X.pageSizeMM() -> PythonQt.QtCore.QSizeF

paintEngine

paintEngine() -> Any

X.paintEngine() -> PythonQt.QtGui.QPaintEngine

Supplemental documentation: Qt 5 reference:

[override virtual protected] QPaintEngine *QPdfWriter::paintEngine() const

Reimplements: QPaintDevice::paintEngine() const.

Upstream PySide2 reference signatures (binding differences may apply):

paintEngine(self) -> PySide2.QtGui.QPaintEngine

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#paintEngine

resolution

resolution() -> int

X.resolution() -> int

Supplemental documentation: Qt 5 reference:

int QPdfWriter::resolution() const

Returns the resolution of the PDF in DPI.

This function was introduced in Qt 5.3.

See also setResolution().

Upstream PySide2 reference signatures (binding differences may apply):

resolution(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#resolution

setCreator

setCreator(creator: str) -> None

X.setCreator(creator)

Supplemental documentation: Qt 5 reference:

void QPdfWriter::setCreator(const QString \&creator)

Sets the creator of the document to creator.

See also creator().

Upstream PySide2 reference signatures (binding differences may apply):

setCreator(self, creator: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#setCreator

setMargins

setMargins(m: Any) -> None

X.setMargins(m)

Upstream PySide2 reference signatures (binding differences may apply):

setMargins(self, m: PySide2.QtGui.QPagedPaintDevice.Margins) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#setMargins

setPageLayout

setPageLayout(pageLayout: Any) -> bool

X.setPageLayout(pageLayout) -> bool

Supplemental documentation: Qt 5 reference:

bool QPdfWriter::setPageLayout(const QPageLayout \&newPageLayout)

Sets the PDF page layout to newPageLayout.

You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new page layout to a new page. You should not call any painting methods between a call to setPageLayout() and newPage() as the wrong paint metrics may be used.

Returns true if the page layout was successfully set to newPageLayout.

This function was introduced in Qt 5.3.

See also pageLayout().

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#setPageLayout

setPageMargins

setPageMargins(margins: Any, units: Any) -> bool

X.setPageMargins(margins, units) -> bool

Supplemental documentation: Qt 5 reference:

bool QPdfWriter::setPageMargins(const QMarginsF \&margins)

Set the PDF page margins in the current page layout units.

You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new margins to a new page. You should not call any painting methods between a call to setPageMargins() and newPage() as the wrong paint metrics may be used.

To get the current page margins use pageLayout().margins().

Returns true if the page margins were successfully set to margins.

This function was introduced in Qt 5.3.

See also pageLayout().

bool QPdfWriter::setPageMargins(const QMarginsF \&margins, QPageLayout::Unit units)

Set the PDF page margins defined in the given units.

You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new margins to a new page. You should not call any painting methods between a call to setPageMargins() and newPage() as the wrong paint metrics may be used.

To get the current page margins use pageLayout().margins().

Returns true if the page margins were successfully set to margins.

This function was introduced in Qt 5.3.

See also pageLayout().

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#setPageMargins

setPageOrientation

setPageOrientation(orientation: Any) -> bool

X.setPageOrientation(orientation) -> bool

Supplemental documentation: Qt 5 reference:

bool QPdfWriter::setPageOrientation(QPageLayout::Orientation orientation)

Sets the PDF page orientation.

The page orientation is used to define the orientation of the page size when obtaining the page rect.

You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new orientation to a new page. You should not call any painting methods between a call to setPageOrientation() and newPage() as the wrong paint metrics may be used.

To get the current QPageLayout::Orientation use pageLayout().orientation().

Returns true if the page orientation was successfully set to orientation.

This function was introduced in Qt 5.3.

See also pageLayout().

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#setPageOrientation

setPageSize

setPageSize(size: Any) -> None

X.setPageSize(size)

Supplemental documentation: Qt 5 reference:

bool QPdfWriter::setPageSize(const QPageSize \&pageSize)

Sets the PDF page size to pageSize.

To get the current QPageSize use pageLayout().pageSize().

You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new page size to a new page. You should not call any painting methods between a call to setPageSize() and newPage() as the wrong paint metrics may be used.

Returns true if the page size was successfully set to pageSize.

This function was introduced in Qt 5.3.

See also pageLayout().

Upstream PySide2 reference signatures (binding differences may apply):

setPageSize(self, size: PySide2.QtGui.QPagedPaintDevice.PageSize) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#setPageSize

setPageSizeMM

setPageSizeMM(size: Any) -> None

X.setPageSizeMM(size)

Upstream PySide2 reference signatures (binding differences may apply):

setPageSizeMM(self, size: PySide2.QtCore.QSizeF) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#setPageSizeMM

setResolution

setResolution(resolution: int) -> None

X.setResolution(resolution)

Supplemental documentation: Qt 5 reference:

void QPdfWriter::setResolution(int resolution)

Sets the PDF resolution in DPI.

This setting affects the coordinate system as returned by, for example QPainter::viewport().

This function was introduced in Qt 5.3.

See also resolution().

Upstream PySide2 reference signatures (binding differences may apply):

setResolution(self, resolution: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#setResolution

setTitle

setTitle(title: str) -> None

X.setTitle(title)

Supplemental documentation: Qt 5 reference:

void QPdfWriter::setTitle(const QString \&title)

Sets the title of the document being created to title.

See also title().

Upstream PySide2 reference signatures (binding differences may apply):

setTitle(self, title: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#setTitle

title

title() -> str

X.title() -> str

Supplemental documentation: Qt 5 reference:

QString QPdfWriter::title() const

Returns the title of the document.

See also setTitle().

Upstream PySide2 reference signatures (binding differences may apply):

title(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qpdfwriter.html#title