QPdfDocumentRenderOptions Class

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

Header: #include <QPdfDocumentRenderOptions>

Public Types

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

Public Functions

Detailed Description

See also QPdfDocument.

Member Type Documentation

enum class QPdfDocumentRenderOptions::RenderFlag

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

ConstantValueDescription
QPdfDocumentRenderOptions::RenderFlag::None0x000The default value, representing no flags.
QPdfDocumentRenderOptions::RenderFlag::Annotations0x001The page is rendered with annotations.
QPdfDocumentRenderOptions::RenderFlag::OptimizedForLcd0x002The text of the page is rendered optimized for LCD display.
QPdfDocumentRenderOptions::RenderFlag::Grayscale0x004The page is rendered grayscale.
QPdfDocumentRenderOptions::RenderFlag::ForceHalftone0x008Always use halftones for rendering if the output image is stretched.
QPdfDocumentRenderOptions::RenderFlag::TextAliased0x010Anti-aliasing is disabled for rendering text.
QPdfDocumentRenderOptions::RenderFlag::ImageAliased0x020Anti-aliasing is disabled for rendering images.
QPdfDocumentRenderOptions::RenderFlag::PathAliased0x040Anti-aliasing is disabled for rendering paths.

See also QPdfDocument::render().

enum class QPdfDocumentRenderOptions::Rotation

This enum describes the rotation of the page for rendering.

ConstantValueDescription
QPdfDocumentRenderOptions::Rotation::None0Do not rotate (the default)
QPdfDocumentRenderOptions::Rotation::Clockwise901Rotate 90 degrees clockwise
QPdfDocumentRenderOptions::Rotation::Clockwise1802Rotate 180 degrees
QPdfDocumentRenderOptions::Rotation::Clockwise2703Rotate 270 degrees clockwise

See also QPdfDocument::render().

Member Function Documentation

[default] QPdfDocumentRenderOptions::QPdfDocumentRenderOptions()

Constructs a QPdfDocumentRenderOptions object.