PDFTool.NET  6.0
Public Types | Public Member Functions | List of all members
PdfTkNet::PtlParamSearchTextAndSetMask Class Reference

テキスト検索してマスク処理するパラメータを表現したクラスです。
More...

#include <NetParamSearchTextAndSetMask.h>

Inheritance diagram for PdfTkNet::PtlParamSearchTextAndSetMask:
Inheritance graph
[legend]
Collaboration diagram for PdfTkNet::PtlParamSearchTextAndSetMask:
Collaboration graph
[legend]

Public Types

enum  REMOVE_ELEMENT {
  REMOVE_ELEMENT::REMOVE_TEXT = 0x00000001, REMOVE_ELEMENT::REMOVE_IMAGE = 0x00000002, REMOVE_ELEMENT::REMOVE_PATH = 0x00000004, REMOVE_ELEMENT::REMOVE_SHADING = 0x00000008,
  REMOVE_ELEMENT::REMOVE_ALL = 0x0FFFFFFF
}
 追加する削除エレメントの種類。 More...
 
- Public Types inherited from PdfTkNet::PtlParamSearchText
enum  TEXT_TYPE { TEXT_TYPE::TEXT_RAW = 1, TEXT_TYPE::TEXT_SORT = 2 }
 テキスト検索タイプ。 More...
 

Public Member Functions

 PtlParamSearchTextAndSetMask ()
 コンストラクタ More...
 
 PtlParamSearchTextAndSetMask (PtlParamSearchTextAndSetMask^ obj)
 コピーコンストラクタ alias copy More...
 
 ‾PtlParamSearchTextAndSetMask ()
 デストラクタ
 
 !PtlParamSearchTextAndSetMask ()
 ファイナライザ。
 
PtlParamSearchTextAndSetMask operator= (PtlParamSearchTextAndSetMask^ obj)
 コピーオペレータ alias copy More...
 
void setColor (PtlColor^ color)
 マスクの色設定。 More...
 
void setOpacity (float opacity)
 マスク色の不透明度を設定。 More...
 
void setRemoveElement (REMOVE_ELEMENT remove)
 マスクの削除対象とするエレメントを追加。 More...
 
- Public Member Functions inherited from PdfTkNet::PtlParamSearchText
PdfTk::PtlParamSearchText * getNative ()
 
 PtlParamSearchText ()
 コンストラクタ More...
 
 PtlParamSearchText (PtlParamSearchText^ obj)
 コピーコンストラクタ alias copy More...
 
 ‾PtlParamSearchText ()
 デストラクタ
 
 !PtlParamSearchText ()
 ファイナライザ。
 
PtlParamSearchText operator= (PtlParamSearchText^ obj)
 コピーオペレータ alias copy More...
 
void appendText (String^ 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

- Protected Attributes inherited from PdfTkNet::PtlParamSearchText
PdfTk::PtlParamSearchText * m_native
 

Detailed Description

テキスト検索してマスク処理するパラメータを表現したクラスです。

テキスト検索した上でヒットしたテキストをマスク処理します。

Member Enumeration Documentation

◆ REMOVE_ELEMENT

追加する削除エレメントの種類。

Enumerator
REMOVE_TEXT 

ヒットしたテキスト以外も削除対象とする。

REMOVE_IMAGE 

画像を削除対象とする。

REMOVE_PATH 

パスを削除対象とする。

REMOVE_SHADING 

シェイディングを削除対象とする。

REMOVE_ALL 

全を削除対象とする。

Constructor & Destructor Documentation

◆ PtlParamSearchTextAndSetMask() [1/2]

PdfTkNet::PtlParamSearchTextAndSetMask::PtlParamSearchTextAndSetMask ( )

コンストラクタ

Exceptions
PtlException

◆ PtlParamSearchTextAndSetMask() [2/2]

PdfTkNet::PtlParamSearchTextAndSetMask::PtlParamSearchTextAndSetMask ( PtlParamSearchTextAndSetMask obj)

コピーコンストラクタ alias copy

Parameters
objコピー元オブジェクト。
Exceptions
PtlException

Member Function Documentation

◆ operator=()

PtlParamSearchTextAndSetMask PdfTkNet::PtlParamSearchTextAndSetMask::operator= ( PtlParamSearchTextAndSetMask obj)

コピーオペレータ alias copy

Parameters
objコピー元オブジェクト。

◆ setColor()

void PdfTkNet::PtlParamSearchTextAndSetMask::setColor ( PtlColor color)

マスクの色設定。

※ 設定しない場合はデフォルト値として黒色が設定されます。

Parameters
colorマスクの色指定。
Exceptions
PtlException

◆ setOpacity()

void PdfTkNet::PtlParamSearchTextAndSetMask::setOpacity ( float  opacity)

マスク色の不透明度を設定。

※ 設定しない場合はデフォルト値として1.0が設定されます。

Parameters
opacity0.0 〜 1.0。0.0が透明、1.0が不透明。
Exceptions
PtlException

◆ setRemoveElement()

void PdfTkNet::PtlParamSearchTextAndSetMask::setRemoveElement ( REMOVE_ELEMENT  remove)

マスクの削除対象とするエレメントを追加。

マスク処理ではテキスト検索した上でヒットしたテキストを削除するのが基本動作ですが、
この関数を用いることにより削除対象とするエレメントを追加することができます。
※ 設定しない場合はヒットしたテキストのみが削除対象となります。

Parameters
remove追加する削除対象のエレメント。REMOVE_XXXのフラグを論理和で指定します。
Exceptions
PtlException