QPdfOutputIntent Class

头: #include <QPdfOutputIntent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Since: Qt 6.8

公共函数

QPdfOutputIntent ()
QPdfOutputIntent (const QPdfOutputIntent & other )
QPdfOutputIntent (QPdfOutputIntent && other )
~QPdfOutputIntent ()
QString outputCondition () const
QString outputConditionIdentifier () const
QColorSpace outputProfile () const
QUrl registryName () const
void setOutputCondition (const QString & 条件 )
void setOutputConditionIdentifier (const QString & identifier )
void setOutputProfile (const QColorSpace & profile )
void setRegistryName (const QUrl & name )
void swap (QPdfOutputIntent & other )
QPdfOutputIntent & operator= (QPdfOutputIntent && other )
QPdfOutputIntent & operator= (const QPdfOutputIntent & other )

详细描述

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

另请参阅 QPdfWriter .

成员函数文档编制

QPdfOutputIntent:: QPdfOutputIntent ()

Constructs a new PDF output intent.

QPdfOutputIntent:: QPdfOutputIntent (const QPdfOutputIntent & other )

Constructs a copy of the output intent other .

[noexcept] QPdfOutputIntent:: QPdfOutputIntent ( QPdfOutputIntent && other )

Constructs a QPdfOutputIntent object by moving from other .

[noexcept] QPdfOutputIntent:: ~QPdfOutputIntent ()

Destroys this output intent.

QString QPdfOutputIntent:: outputCondition () const

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 .

另请参阅 setOutputCondition ().

QString QPdfOutputIntent:: outputConditionIdentifier () const

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 .

另请参阅 setOutputConditionIdentifier ().

QColorSpace QPdfOutputIntent:: outputProfile () const

Returns the output device profile.

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

另请参阅 setOutputProfile ().

QUrl QPdfOutputIntent:: registryName () const

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

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

另请参阅 setRegistryName () 和 setOutputConditionIdentifier ().

void QPdfOutputIntent:: setOutputCondition (const QString & 条件 )

Sets the human-readable output condition to condition .

另请参阅 outputCondition (), setOutputConditionIdentifier (),和 setRegistryName ().

void QPdfOutputIntent:: setOutputConditionIdentifier (const QString & identifier )

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.

另请参阅 outputConditionIdentifier (), setOutputCondition (),和 setRegistryName ().

void QPdfOutputIntent:: setOutputProfile (const QColorSpace & profile )

Sets the output device profile to profile .

注意: 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.

另请参阅 outputProfile (), QColorSpace::fromIccProfile ,和 QPdfWriter::setColorModel .

void QPdfOutputIntent:: setRegistryName (const QUrl & name )

Sets the URL of the characterization registry to name .

另请参阅 registryName () 和 setOutputConditionIdentifier ().

[noexcept] void QPdfOutputIntent:: swap ( QPdfOutputIntent & other )

Swaps this output intent with other 。此操作非常快且从不失败。

[noexcept] QPdfOutputIntent &QPdfOutputIntent:: operator= ( QPdfOutputIntent && other )

Move-assigns the output intent other over this intent.

QPdfOutputIntent &QPdfOutputIntent:: operator= (const QPdfOutputIntent & other )

Assigns the output intent other over this intent.