QPdfDocumentRenderOptions Class

QPdfDocumentRenderOptions クラスは、PDF ドキュメントからページをレンダリングするためのオプションを保持します。詳細...

Header: #include <QPdfDocumentRenderOptions>

パブリック型

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

パブリック関数

QPdfDocumentRenderOptions()
QPdfDocumentRenderOptions::RenderFlags renderFlags() const
QPdfDocumentRenderOptions::Rotation rotation() const
QRect scaledClipRect() const
QSize scaledSize() const
void setRenderFlags(QPdfDocumentRenderOptions::RenderFlags flags)
void setRotation(QPdfDocumentRenderOptions::Rotation rotation)
void setScaledClipRect(const QRect &r)
void setScaledSize(const QSize &s)

詳しい説明

QPdfDocumentも参照

メンバ型ドキュメント

enum class QPdfDocumentRenderOptions::RenderFlag
flags QPdfDocumentRenderOptions::RenderFlags

この enum は、ページがどのようにレンダリングされるべきかを記述するために使われます。

定数説明
QPdfDocumentRenderOptions::RenderFlag::None0x000デフォルト値。
QPdfDocumentRenderOptions::RenderFlag::Annotations0x001ページは注釈付きでレンダリングされます。
QPdfDocumentRenderOptions::RenderFlag::OptimizedForLcd0x002ページのテキストはLCD表示に最適化されてレンダリングされます。
QPdfDocumentRenderOptions::RenderFlag::Grayscale0x004ページはグレースケールでレンダリングされる。
QPdfDocumentRenderOptions::RenderFlag::ForceHalftone0x008出力画像が引き伸ばされている場合は、常にハーフトーンを使用してレンダリングします。
QPdfDocumentRenderOptions::RenderFlag::TextAliased0x010テキストのレンダリングでアンチエイリアスを無効にする。
QPdfDocumentRenderOptions::RenderFlag::ImageAliased0x020画像のレンダリングでアンチエイリアスを無効にする。
QPdfDocumentRenderOptions::RenderFlag::PathAliased0x040パスのレンダリングではアンチエイリアスを無効にします。

RenderFlags 型はQFlags<RenderFlag> の typedef です。RenderFlag 値の OR の組み合わせを格納します。

QPdfDocument::render()も参照してください

enum class QPdfDocumentRenderOptions::Rotation

この列挙型は、レンダリングのためのページの回転を記述する。

定数説明
QPdfDocumentRenderOptions::Rotation::None0回転しない(デフォルト)
QPdfDocumentRenderOptions::Rotation::Clockwise901時計回りに90度回転
QPdfDocumentRenderOptions::Rotation::Clockwise1802180度回転
QPdfDocumentRenderOptions::Rotation::Clockwise2703時計回りに270度回転

QPdfDocument::render()も参照

メンバ関数のドキュメント

[constexpr noexcept] QPdfDocumentRenderOptions::QPdfDocumentRenderOptions()

QPdfDocumentRenderOptions オブジェクトを構築します。

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

PDF 文書か ら ページ を レ ン ダ リ ングす る ために用い ら れる 特殊フ ラ グ を返 し ます。

setRenderFlags()も参照してください

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

PDF 文書からページをレンダリングする際に使用した回転を返します。

setRotation()も参照 ください。

[constexpr noexcept] QRect QPdfDocumentRenderOptions::scaledClipRect() const

scaledSize() に拡大縮小された後の、ページから切り取られる矩形領域を返します。

setScaledClipRect()も参照

[constexpr noexcept] QSize QPdfDocumentRenderOptions::scaledSize() const

レンダリングするページのサイズをピクセル単位で返します。

setScaledSize()も参照

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

PDF 文書か ら ページ を レ ン ダ リ ングす る ために用い ら れ る 特殊なflags を設定 し ます。

renderFlags()も参照してください

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

PDF 文書か ら ページ を レ ン ダ リ ングす る ために用い ら れ るrotation を設定 し ます。

rotation()も参照してください

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

scaledSize() に拡大縮小 さ れた後にページか ら ク リ ッ プ さ れ る 矩形領域(r) を設定 し ます。

scaledClipRect()も参照

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

レンダリングするページのサイズ (s) をピクセル単位で設定します。

scaledSize()も参照してください

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.