- Qt 6.10
- Qt PDF
- C++ Classes
- QPdfDocumentRenderOptions
- Qt 6.10.1 Reference Documentation

# QPdfDocumentRenderOptions Class

The QPdfDocumentRenderOptions class holds the options to render a page from a PDF document. More...

Header: | `#include <QPdfDocumentRenderOptions>`

- List of all members, including inherited members

## Public Types

enum class | RenderFlag { None, Annotations, OptimizedForLcd, Grayscale, ForceHalftone, …, PathAliased }
enum class | Rotation { None, Clockwise90, Clockwise180, Clockwise270 }

## Public Functions

| QPdfDocumentRenderOptions()

## Detailed Description

See also QPdfDocument.

## Member Type Documentation

### enum class QPdfDocumentRenderOptions::RenderFlag

This enum is used to describe how a page should be rendered.

Constant | Value | Description
--- | --- | ---
`QPdfDocumentRenderOptions::RenderFlag::None` | `0x000` | The default value, representing no flags.
`QPdfDocumentRenderOptions::RenderFlag::Annotations` | `0x001` | The page is rendered with annotations.
`QPdfDocumentRenderOptions::RenderFlag::OptimizedForLcd` | `0x002` | The text of the page is rendered optimized for LCD display.
`QPdfDocumentRenderOptions::RenderFlag::Grayscale` | `0x004` | The page is rendered grayscale.
`QPdfDocumentRenderOptions::RenderFlag::ForceHalftone` | `0x008` | Always use halftones for rendering if the output image is stretched.
`QPdfDocumentRenderOptions::RenderFlag::TextAliased` | `0x010` | Anti-aliasing is disabled for rendering text.
`QPdfDocumentRenderOptions::RenderFlag::ImageAliased` | `0x020` | Anti-aliasing is disabled for rendering images.
`QPdfDocumentRenderOptions::RenderFlag::PathAliased` | `0x040` | Anti-aliasing is disabled for rendering paths.

See also QPdfDocument::render().

### enum class QPdfDocumentRenderOptions::Rotation

This enum describes the rotation of the page for rendering.

Constant | Value | Description
--- | --- | ---
`QPdfDocumentRenderOptions::Rotation::None` | `0` | Do not rotate (the default)
`QPdfDocumentRenderOptions::Rotation::Clockwise90` | `1` | Rotate 90 degrees clockwise
`QPdfDocumentRenderOptions::Rotation::Clockwise180` | `2` | Rotate 180 degrees
`QPdfDocumentRenderOptions::Rotation::Clockwise270` | `3` | Rotate 270 degrees clockwise

See also QPdfDocument::render().

## Member Function Documentation

### `[default]` QPdfDocumentRenderOptions::QPdfDocumentRenderOptions()

Constructs a QPdfDocumentRenderOptions object.