PDFTool
7.0
|
テキスト検索してマスク処理するパラメータを表現したクラスです。
More...
#include <PtlParamSearchTextAndSetMask.h>
Public Types | |
enum | REMOVE_ELEMENT { REMOVE_TEXT = 0x00000001, REMOVE_IMAGE = 0x00000002, REMOVE_PATH = 0x00000004, REMOVE_SHADING = 0x00000008, REMOVE_ALL = 0x0FFFFFFF } |
追加する削除エレメントの種類。 More... | |
![]() | |
enum | TEXT_TYPE { TEXT_RAW = 1, TEXT_SORT = 2 } |
テキスト検索タイプ。 More... | |
Public Member Functions | |
PtlParamSearchTextAndSetMask () | |
コンストラクタ More... | |
PtlParamSearchTextAndSetMask (const PtlParamSearchTextAndSetMask &obj) | |
コピーコンストラクタ More... | |
‾PtlParamSearchTextAndSetMask () | |
デストラクタ | |
PtlParamSearchTextAndSetMask & | operator= (const PtlParamSearchTextAndSetMask &obj) |
コピーオペレータ More... | |
void | setColor (const PtlColor &color) |
マスクの色設定。 More... | |
void | setOpacity (float opacity) |
マスク色の不透明度を設定。 More... | |
void | setRemoveElement (int remove) |
マスクの削除対象とするエレメントを追加。 More... | |
![]() | |
int | getHandle () const |
PtlParamSearchText () | |
コンストラクタ More... | |
PtlParamSearchText (const PtlParamSearchText &obj) | |
コピーコンストラクタ More... | |
‾PtlParamSearchText () | |
デストラクタ | |
PtlParamSearchText & | operator= (const PtlParamSearchText &obj) |
コピーオペレータ More... | |
void | appendText (const PtlParamString &text) |
検索するテキストを追加。 More... | |
void | setCompareCase (bool compareCase) |
大文字と小文字を区別するかを設定。 More... | |
void | setIgnoreActualText (bool ignoreActualText) |
ActualTextを無視するかを設定。 More... | |
void | setTextType (TEXT_TYPE type) |
検索するテキストのタイプを設定。 More... | |
void | setOverlapAsLine (float overlap) |
文字と文字がどれだけ重なっていると同じ行とみなすかを設定。 More... | |
Additional Inherited Members | |
![]() | |
int | m_dataParamSearchText |
テキスト検索してマスク処理するパラメータを表現したクラスです。
テキスト検索した上でヒットしたテキストをマスク処理します。
PdfTk::PtlParamSearchTextAndSetMask::PtlParamSearchTextAndSetMask | ( | ) |
コンストラクタ
PtlException |
PdfTk::PtlParamSearchTextAndSetMask::PtlParamSearchTextAndSetMask | ( | const PtlParamSearchTextAndSetMask & | obj | ) |
PtlParamSearchTextAndSetMask& PdfTk::PtlParamSearchTextAndSetMask::operator= | ( | const PtlParamSearchTextAndSetMask & | obj | ) |
コピーオペレータ
obj | コピー元オブジェクト。 |
void PdfTk::PtlParamSearchTextAndSetMask::setColor | ( | const PtlColor & | color | ) |
void PdfTk::PtlParamSearchTextAndSetMask::setOpacity | ( | float | opacity | ) |
マスク色の不透明度を設定。
※ 設定しない場合はデフォルト値として1.0が設定されます。
opacity | 0.0 〜 1.0。0.0が透明、1.0が不透明。 |
PtlException |
void PdfTk::PtlParamSearchTextAndSetMask::setRemoveElement | ( | int | remove | ) |
マスクの削除対象とするエレメントを追加。
マスク処理ではテキスト検索した上でヒットしたテキストを削除するのが基本動作ですが、
この関数を用いることによりヒットしたテキストの領域にある他のエレメントを削除対象とすることができます。
※ 設定しない場合はヒットしたテキストのみが削除対象となります。
remove | 追加する削除対象のエレメント。REMOVE_XXXのフラグを論理和で指定します。 |
PtlException |