W3cubDocs

/Qt 5.15

QPdf Namespace

The QPdf namespace contains miscellaneous identifiers used throughout the QtPdf module. More...

Header: #include <QPdf>

Types

enum RenderFlag { NoRenderFlags, RenderAnnotations, RenderOptimizedForLcd, RenderGrayscale, RenderForceHalftone, …, RenderPathAliased }
flags RenderFlags
enum Rotation { Rotate0, Rotate90, Rotate180, Rotate270 }

Detailed Description

Type Documentation

enum QPdf::RenderFlagflags QPdf::RenderFlags

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

Constant Value Description
QPdf::NoRenderFlags 0x000 The default value, representing no flags.
QPdf::RenderAnnotations 0x001 The page is rendered with annotations.
QPdf::RenderOptimizedForLcd 0x002 The text of the page is rendered optimized for LCD display.
QPdf::RenderGrayscale 0x004 The page is rendered grayscale.
QPdf::RenderForceHalftone 0x008 Always use halftones for rendering if the output image is stretched.
QPdf::RenderTextAliased 0x010 Anti-aliasing is disabled for rendering text.
QPdf::RenderImageAliased 0x020 Anti-aliasing is disabled for rendering images.
QPdf::RenderPathAliased 0x040 Anti-aliasing is disabled for rendering paths.

The RenderFlags type is a typedef for QFlags<RenderFlag>. It stores an OR combination of RenderFlag values.

See also QPdfDocument::render().

enum QPdf::Rotation

This enum describes the rotation of the page for rendering.

Constant Value Description
QPdf::Rotate0 0 Do not rotate (the default)
QPdf::Rotate90 1 Rotate 90 degrees clockwise
QPdf::Rotate180 2 Rotate 180 degrees
QPdf::Rotate270 3 Rotate 270 degrees clockwise

See also QPdfDocument::render().

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qpdf.html