IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QPdfDocumentRenderOptions Class

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

This class was introduced in Qt 5.10.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QPdfDocumentRenderOptions Class

  • Header: QPdfDocumentRenderOptions

  • Since: Qt 5.10

Detailed Description

 

See Also

See also QPdfDocument

Member Type Documentation

 

enum QPdfDocumentRenderOptions::RenderFlag

flags QPdfDocumentRenderOptions::RenderFlags

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.

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

See Also

enum 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

Member Function Documentation

 

[constexpr] QPdfDocumentRenderOptions::QPdfDocumentRenderOptions()

Constructs a QPdfDocumentRenderOptions object.

[constexpr] QPdfDocumentRenderOptions::RenderFlags QPdfDocumentRenderOptions::renderFlags() const

Returns the special flags used for rendering a page from a PDF document.

See Also

See also setRenderFlags()

[constexpr] QPdfDocumentRenderOptions::Rotation QPdfDocumentRenderOptions::rotation() const

Returns the rotation used for rendering a page from a PDF document.

See Also

See also setRotation()

[constexpr] QRect QPdfDocumentRenderOptions::scaledClipRect() const

Returns the rectangular region to be clipped from the page after having been scaled to scaledSize().

See Also

See also setScaledClipRect()

[constexpr] QSize QPdfDocumentRenderOptions::scaledSize() const

Returns the size of the page to be rendered, in pixels.

See Also

See also setScaledSize()

[constexpr] void QPdfDocumentRenderOptions::setRenderFlags(QPdfDocumentRenderOptions::RenderFlags flags)

Sets the special flags used for rendering a page from a PDF document.

See Also

See also renderFlags()

[constexpr] void QPdfDocumentRenderOptions::setRotation(QPdfDocumentRenderOptions::Rotation rotation)

Sets the rotation used for rendering a page from a PDF document.

See Also

See also rotation()

[constexpr] void QPdfDocumentRenderOptions::setScaledClipRect(const QRect &r)

Sets the rectangle region (r) to be clipped from the page after having been scaled to scaledSize().

See Also

See also scaledClipRect()

[constexpr] void QPdfDocumentRenderOptions::setScaledSize(const QSize &s)

Sets the size (s) of the page to be rendered, in pixels.

See Also

See also scaledSize()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+