PySide6.QtGui.QPdfOutputIntent

class QPdfOutputIntent

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

The QPdfOutputIntent class contains metadata that characterize the printing condition for which painting data has been prepared when generating a PDF file.

See also

QPdfWriter

__init__()

Constructs a new PDF output intent.

__init__(other)
Parameters:

otherQPdfOutputIntent

Constructs a copy of the output intent other.

outputCondition()
Return type:

str

Returns the human-readable output condition.

This is a string that concisely identifies the characterized printing condition in a form that will be meaningful to a human operator.

The default output condition is sRGB IEC61966 v2.1 with black scaling.

outputConditionIdentifier()
Return type:

str

Returns the identifier of the output condition.

If a registry name is provided, then this identifier should should match the reference name of an entry in that registry.

The default identifier is sRGB_IEC61966-2-1_black_scaled.

outputProfile()
Return type:

QColorSpace

Returns the output device profile.

The default profile is the sRGB v2 profile available from the International Color Consortium .

registryName()
Return type:

QUrl

Returns the URL of a characterization registry for the intended printing condition.

The default registry is http://www.color.org.

setOutputCondition(condition)
Parameters:

condition – str

Sets the human-readable output condition to condition.

setOutputConditionIdentifier(identifier)
Parameters:

identifier – str

Sets the identifier of the output condition to identifier.

If a registry name is provided, then this identifier should should match the reference name of an entry in that registry.

setOutputProfile(profile)
Parameters:

profileQColorSpace

Sets the output device profile to profile.

Note

PDF/X-4 requires all the color specifications in the document to match the same colorspace of profile. It is the application’s responsibility to ensure this is the case.

setRegistryName(name)
Parameters:

nameQUrl

Sets the URL of the characterization registry to name.

swap(other)
Parameters:

otherQPdfOutputIntent

Swaps this output intent with other. This operation is very fast and never fails.