QPdfOutputIntent Class

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

Public Functions

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 &condition)
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)

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.

Member Function Documentation

QPdfOutputIntent::QPdfOutputIntent()

Constructs a new PDF output intent.

[noexcept] 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.

See also 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.

See also setOutputConditionIdentifier().

QColorSpace QPdfOutputIntent::outputProfile() const

Returns the output device profile.

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

See also 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.

See also setRegistryName() and setOutputConditionIdentifier().

void QPdfOutputIntent::setOutputCondition(const QString &condition)

Sets the human-readable output condition to condition.

See also outputCondition(), setOutputConditionIdentifier(), and 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.

See also outputConditionIdentifier(), setOutputCondition(), and setRegistryName().

void QPdfOutputIntent::setOutputProfile(const QColorSpace &profile)

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.

See also outputProfile(), QColorSpace::fromIccProfile, and QPdfWriter::setColorModel.

void QPdfOutputIntent::setRegistryName(const QUrl &name)

Sets the URL of the characterization registry to name.

See also registryName() and setOutputConditionIdentifier().

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

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

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

Move-assigns the output intent other over this intent.

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

Assigns the output intent other over this intent.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.