- Qt 6.9
- Qt GUI
- C++ Classes
- QPdfOutputIntent
- Qt 6.9.2 Reference Documentation

# 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

- List of all members, including inherited members
- QPdfOutputIntent is part of Painting Classes.

## 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.

### 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 this output intent with other. This operation is very fast and never fails.

### `[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.