Documentize Namespace

クラス

クラス名説明
AddTimestampOptionsDocumentize.Timestamp プラグインの追加タイムスタンプオプションを表します。
CompressOptionsDocumentize.Optimizer プラグインの圧縮オプションを表します。
DecryptionOptionsDocumentize.Security プラグインの復号オプションを表します。
DirectoryDataSourceプラグインのロードおよび保存操作のためのディレクトリデータを表します。
DocConverterDocumentize.DocConverter プラグインを表します。PDF ドキュメントを DOC/DOCX フォーマットに変換するために使用されます。
EncryptionOptionsDocumentize.Security プラグインの暗号化オプションを表します。
FileDataSourceプラグインのロードおよび保存操作のためのファイルデータを表します。
FileResultファイルへの文字列パスとして表される操作結果を表します。
HtmlConverterDocumentize.HtmlConverter プラグインを表します。PDF ドキュメントを HTML フォーマットに変換し、HTML ドキュメントを PDF フォーマットに変換するために使用されます。
HtmlToPdfOptionsDocumentize.HtmlConverter プラグインの HTML から PDF 変換オプションを表します。
ImageExtractorDocumentize.ImageExtractor プラグインを表します。PDF ドキュメントから画像を抽出するために使用されます。
ImageExtractorOptionsDocumentize.ImageExtractor プラグインの画像抽出オプションを表します。
Info現在の製品ビルドに関する情報を提供するクラスです。
JpegConverterDocumentize.JpegConverter プラグインを表します。PDF ドキュメントを JPEG フォーマットに変換するために使用されます。
Licenseライセンスを設定するためのメソッドを提供します。
MergeOptionsDocumentize.Merger プラグインのマージオプションを表します。
MergerDocumentize.Merger プラグインを表します。複数の PDF ドキュメントを1つの PDF にマージするために使用されます。
Messageモデルによって生成されたチャット補完メッセージです。
ObjectResult文字列として表される操作結果を表します。
OptimizeOptionsDocumentize.Optimizer プラグインの最適化オプションを表します。
OptimizerDocumentize.Optimizer プラグインを表します。
PageInfoページ情報を表します。
PageSizePDF ドキュメントのページサイズを表すクラスです。
PdfAConvertOptionsDocumentize.PdfAConverter プラグインを使用して PDF ドキュメントを PDF/A フォーマットに変換するためのオプションを表します。
PdfAConverterPDF/A フォーマットへの PDF ドキュメントの変換を処理し、PDF/A 適合性の検証を行うプラグインを表します。
PdfAOptionsBaseDocumentize.PdfAConverter プラグインオプションのベースクラスを表します。このクラスは PDF/A 変換および検証プロセスの構成のためのプロパティおよびメソッドを提供します。
PdfAValidateOptionsDocumentize.PdfAConverter プラグインを使用して PDF ドキュメントの PDF/A 準拠を検証するためのオプションを表します。
PdfAValidationResultPDF/A 検証プロセスの結果を表します。
PdfChatGptPdfChatGpt プラグインを表します。
PdfChatGptOptionsDocumentize.PdfChatGpt プラグインのオプションを表します。
PdfChatGptRequestOptionsDocumentize.PdfChatGpt プラグインのオプションを表します。
PdfConverterOptionsPDF 変換プラグインのオプションを表します。
PdfExtractorPDF ドキュメントのページに存在する可能性のあるテキスト、画像、およびその他のコンテンツの抽出のための基本機能を表します。
PdfExtractorOptionsTextExtractor および ImageExtractor プラグインのオプションを表します。
PdfToDocOptionsDocumentize.DocConverter プラグインの PDF から DOC 変換オプションを表します。
PdfToHtmlOptionsDocumentize.HtmlConverter プラグインの PDF から HTML 変換オプションを表します。
PdfToJpegOptionsDocumentize.JpegConverter プラグインの PDF から JPEG 変換オプションを表します。
PdfToPngOptionsDocumentize.PngConverter プラグインの PDF から PNG 変換オプションを表します。
PdfToTiffOptionsDocumentize.TiffConverter プラグインの PDF から TIFF 変換オプションを表します。
PdfToXlsOptionsDocumentize.XlsConverter プラグインの PDF から XLSX 変換オプションを表します。
PluginBaseOptionsプラグインのベースオプションを表します。
PngConverterDocumentize.PngConverter プラグインを表します。PDF ドキュメントを PNG フォーマットに変換するために使用されます。
Rectangleクラスは長方形を表します。
ResizeOptionsDocumentize.Optimizer プラグインのリサイズオプションを表します。
ResultContainerプラグインの処理結果コレクションを含むコンテナを表します。
RotateOptionsDocumentize.Optimizer プラグインの回転オプションを表します。
SecurityDocumentize.Security プラグインを表します。
SignOptionsDocumentize.Signature プラグインの署名オプションを表します。
SignatureDocumentize.Signature プラグインを表します。
SplitOptionsDocumentize.Splitter プラグインの分割オプションを表します。
SplitterDocumentize.Splitter プラグインを表します。ドキュメントを別々のページに分割するために使用されます。
StreamDataSourceプラグインのロードおよび保存操作のためのストリームデータソースを表します。
StreamResultストリームの形式で表される操作結果を表します。
StringResult文字列として表される操作結果を表します。
TableBuilderクラスはPDFページのテーブルビルダーを表します。
TableCellBuilderクラスはテーブルセルのビルダーを表します。
TableGeneratorDocumentize.TableGenerator プラグインを表します。PDF ドキュメントにテーブルを追加するために使用されます。
TableOptionsDocumentize.TableGenerator プラグインによってドキュメントにテーブルを追加するためのオプションを表します。
TableRowBuilderクラスはテーブル行のビルダーを表します。
TextExtractorDocumentize.TextExtractor プラグインを表します。PDF ドキュメントからテキストを抽出するために使用されます。
TextExtractorOptionsDocumentize.TextExtractor プラグインのテキスト抽出オプションを表します。
TiffConverterDocumentize.TiffConverter プラグインを表します。PDF ドキュメントを TIFF フォーマットに変換するために使用されます。
TimestampDocumentize.Timestamp プラグインを表します。
XlsConverterDocumentize.XlsConverter プラグインを表します。PDF ドキュメントを XLSX/XLS フォーマットに変換するために使用されます。

インターフェース

インターフェース名説明
IDataSource具体的なデータが実装すべき共通メンバーを定義する一般データインターフェースです。
IOperationResult具体的なプラグイン操作結果が実装すべき共通メソッドを定義する一般操作結果インターフェースです。
IPluginOptions具体的なプラグインオプションが実装すべき共通メソッドを定義する一般プラグインオプションインターフェースです。

列挙型

列挙型名説明
ConvertErrorActionこのクラスは変換エラーのアクションを表します。
ConvertSoftMaskActionこのアクションはソフトマスクを伴う画像の変換アクションを表します。
DataTypeプラグイン処理のためのデータの可能なタイプを表します。
PdfToXlsOptions.ExcelFormat.xlsx、.xls/xml または csv ファイルフォーマットを指定することを許可します。デフォルト値は XLSX です。
HtmlMediaTypeレンダリング中に使用される可能なメディアタイプを指定します。
HtmlPageLayoutOption他のオプションと共にページのサイズとレイアウトを決定するフラグを指定します。
PdfAStandardVersionPDF ドキュメントの PDF/A 標準バージョンを指定します。
Roleメッセージの著者の役割です。
Rotation可能な回転値の列挙型です。
PdfToHtmlOptions.SaveDataTypeHTML ファイルの出力タイプを定義します。
TextExtractorOptions.TextFormattingModePDF ドキュメントをテキストに変換する際に使用できるさまざまなモードを定義します。Documentize.TextExtractorOptions クラスを参照してください。

Documentize Namespaceのサブセクション

Enum ConvertErrorAction

情報

このクラスは変換エラーに対するアクションを表します。

public enum ConvertErrorAction

フィールド

  • Delete = 0
  • None = 1

Namespace: Documentize Assembly: Documentize.dll

Enum ConvertSoftMaskAction

情報

このアクションはソフトマスクを使用した画像の変換に関するアクションを表します。

public enum ConvertSoftMaskAction

フィールド

  • ConvertToStencilMask = 1: ソフトマスクはステンシルマスクに変換されます。
  • Default = 0: デフォルト戦略を使用します。

名前空間: Documentize アセンブリ: Documentize.dll

Enum HtmlMediaType

情報

レンダリング中に使用される可能性のあるメディアタイプを指定します。

public enum HtmlMediaType

フィールド

  • Print = 0: 印刷。
  • Screen = 1: スクリーン。

名前空間: Documentize アセンブリ: Documentize.dll

Enum HtmlPageLayoutOption

情報

他のオプションと組み合わせてページのサイズとレイアウトを決定するフラグを指定します。

public enum HtmlPageLayoutOption

フィールド

  • FitToWidestContentWidth = 3: ページの幅が指定されたページ幅ではなく、コンテンツサイズ自体から決定されることを示します。
  • None = 0: HtmlPageLayoutOptionがページのサイズやレイアウトに影響を与えないことを示すデフォルト値です。
  • ScaleToPageWidth = 256: 文書の内容がページに収まるようにスケーリングされることを示します。

namespace: Documentize assembly: Documentize.dll

Enum PdfAStandardVersion

情報

PDF文書のPDF/A標準バージョンを指定します。

public enum PdfAStandardVersion

フィールド

  • Auto = 0: PDF/A標準バージョンが自動的に決定されます。
  • PDF_A_1A = 1: PDF/A-1a標準バージョンを指定します。
  • PDF_A_1B = 2: PDF/A-1b標準バージョンを指定します。
  • PDF_A_2A = 3: PDF/A-2a標準バージョンを指定します。
  • PDF_A_2B = 4: PDF/A-2b標準バージョンを指定します。
  • PDF_A_2U = 5: PDF/A-2u標準バージョンを指定します。
  • PDF_A_3A = 6: PDF/A-3a標準バージョンを指定します。
  • PDF_A_3B = 7: PDF/A-3b標準バージョンを指定します。
  • PDF_A_3U = 8: PDF/A-3u標準バージョンを指定します。

Namespace: Documentize Assembly: Documentize.dll

Enum PdfToHtmlOptions.SaveDataType

情報

HTMLファイルの出力タイプを定義します。

public enum PdfToHtmlOptions.SaveDataType

フィールド

  • FileWithEmbeddedResources = 1: 埋め込まれたリソースを持つファイルにHTMLを保存
  • FileWithExternalResources = 0: 外部リソースを持つファイルにHTMLを保存
  • StreamWithEmbeddedResources = 2: 埋め込まれたリソースを持つファイルストリームにHTMLを保存

名前空間: Documentize アセンブリ: Documentize.dll

Enum PdfToXlsOptions.ExcelFormat

情報

ファイル形式を .xlsx、.xls/xml または csv として指定できます。デフォルト値は XLSX です。

ファイル形式を .xlsx、.xls/xml または csv として指定できます。 デフォルト値は XLSX です。

public enum PdfToXlsOptions.ExcelFormat

Fields

  • CSV = 2: カンマ区切り値 (CSV) ファイル形式。
  • ODS = 4: オープン・ドキュメント・スプレッドシート。
  • XLSM = 3: マクロ対応のオフィス・オープンXML (.xlsm) ファイル形式。
  • XLSX = 1: オフィス・オープンXML (.xlsx) ファイル形式。
  • XMLSpreadSheet2003 = 0: Excel 2003 XML (.xls) ファイル形式。

Namespace: Documentize Assembly: Documentize.dll

Enum TextExtractorOptions.TextFormattingMode

情報

PDF ドキュメントをテキストに変換するときに使用できる異なるモードを定義します。Documentize.TextExtractorOptions クラスを参照してください。

public enum TextExtractorOptions.TextFormattingMode

Fields

  • Plain = 2: テキストフラグメントの相対的な位置を考慮しつつ、追加のスペースを加えずに PDF テキストコンテンツを表します。
  • Pure = 0: 少数のフォーマットルーチンを使用して PDF テキストコンテンツを表します。これには、相対的な位置を考慮し、テキストをページの幅に合わせるために追加のスペースを加えることが含まれます。
  • Raw = 1: フォーマットなしの PDF コンテンツをそのまま表します。

Namespace: Documentize Assembly: Documentize.dll

インターフェイス IPluginOptions

情報

具体的なプラグインオプションが実装すべき共通メソッドを定義する一般的なプラグインオプションインターフェイス。

public interface IPluginOptions

名前空間: Documentize アセンブリ: Documentize.dll

インターフェース IDataSource

情報

具体的なデータが実装すべき共通メンバーを定義する一般的なデータインターフェースです。

public interface IDataSource

プロパティ

DataType

データソースの種類です。

DataType DataType { get; }

プロパティ値

DataType

名前空間: Documentize アセンブリ: Documentize.dll

インターフェース IOperationResult

情報

具体的なプラグインの操作結果が実装すべき一般的なメソッドを定義する一般的な操作結果インターフェース。

public interface IOperationResult

プロパティ

Data

生データを取得します。

object Data { get; }

プロパティの値

object

IsFile

結果が出力ファイルへのパスであるかどうかを示します。

bool IsFile { get; }

プロパティの値

bool

IsStream

結果が出力ストリームであるかどうかを示します。

bool IsStream { get; }

プロパティの値

bool

IsString

結果がテキスト文字列であるかどうかを示します。

bool IsString { get; }

プロパティの値

bool

メソッド

ToFile()

結果をファイルに変換しようとします。

string ToFile()

戻り値

string:結果がファイルの場合、出力ファイルへのパスを表す文字列。それ以外の場合はnull

ToStream()

結果をストリームオブジェクトに変換しようとします。

Stream ToStream()

戻り値

Stream:結果がストリームの場合、出力データを表すストリームオブジェクト。それ以外の場合はnull

Namespace: Documentize Assembly: Documentize.dll

クラス AddTimestampOptions

情報

Documentize.Timestamp プラグインのための追加タイムスタンプオプションを表します。

public class AddTimestampOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsAddTimestampOptions

実装

継承メンバー

コンストラクタ

AddTimestampOptions(Stream, string, string, string)

デフォルトオプションで Documentize.AddTimestampOptions オブジェクトの新しいインスタンスを初期化します。

public AddTimestampOptions(Stream pfx, string password, string serverUrl, string serverBasicAuthCredentials = "")

パラメーター

  • pfx Stream: pfx ファイルへのパス。
  • password string: pfx ファイルのパスワード。
  • serverUrl string: タイムスタンプサーバーの URL。
  • serverBasicAuthCredentials string: 基本認証の資格情報。ユーザー名とパスワードは文字列 “username:password” にまとめられます。(オプション)。

AddTimestampOptions(string, string, string, string)

デフォルトオプションで Documentize.AddTimestampOptions オブジェクトの新しいインスタンスを初期化します。

public AddTimestampOptions(string pfx, string password, string serverUrl, string serverBasicAuthCredentials = "")

パラメーター

  • pfx string: pfx ファイルへのパス。
  • password string: pfx ファイルのパスワード。
  • serverUrl string: タイムスタンプサーバーの URL。
  • serverBasicAuthCredentials string: 基本認証の資格情報。ユーザー名とパスワードは文字列 “username:password” にまとめられます。(オプション)。

名前空間: Documentize アセンブリ: Documentize.dll

クラス CompressOptions

情報

Documentize.Optimizer プラグインの圧縮オプションを表します。

public sealed class CompressOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsCompressOptions

実装

継承メンバー

コンストラクター

CompressOptions()

Documentize.CompressOptions オブジェクトのインスタンスをデフォルトオプションで初期化します。

public CompressOptions()

名前空間: Documentize アセンブリ: Documentize.dll

クラス DecryptionOptions

情報

Documentize.Security プラグインの復号オプションを表します。

public class DecryptionOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsDecryptionOptions

実装

継承メンバー

コンストラクタ

DecryptionOptions(string)

デフォルトオプションで Documentize.DecryptionOptions オブジェクトの新しいインスタンスを初期化します。

public DecryptionOptions(string ownerPassword)

パラメーター

  • ownerPassword string: オーナーパスワード。

プロパティ

OwnerPassword

オーナーパスワード。

public string OwnerPassword { get; set; }

プロパティ値

string

名前空間: Documentize アセンブリ: Documentize.dll

クラス DocConverter

情報

Documentize.DocConverter プラグインを表します。PDF ドキュメントを DOC/DOCX 形式に変換するために使用されます。

public sealed class DocConverter

継承

objectDocConverter

継承メンバー

この例では、PDF ドキュメントを Doc 形式に変換する方法を示します。

// DocConverter を作成する
var plugin = new DocConverter();
// 指示を設定するために PdfToDocOptions オブジェクトを作成する
var opt = new PdfToDocOptions();
// 入力ファイルパスを追加する
opt.AddInput(new FileDataSource(inputPath));
// 出力ファイルパスを設定する
opt.AddOutput(new FileDataSource(outputPath));
// 処理を実行する
plugin.Process(opt);

コンストラクター

DocConverter()

public DocConverter()

メソッド

Dispose()

IDisposable の実装です。

public void Dispose()

Process(PdfToDocOptions)

指定されたパラメータで Documentize.DocConverter 処理を開始します。

public ResultContainer Process(PdfToDocOptions options)

パラメーター

  • options PdfToDocOptions: Documentize.DocConverter の指示を含むオプションオブジェクトです。

戻り値

ResultContainer : 操作の結果を含む Documentize.ResultContainer オブジェクトです。

名前空間: Documentize アセンブリ: Documentize.dll

クラス EncryptionOptions

情報

Documentize.Security プラグインの暗号化オプションを表します。

public class EncryptionOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsEncryptionOptions

実装

継承メンバー

コンストラクタ

EncryptionOptions(string, string)

デフォルトオプションで Documentize.EncryptionOptions オブジェクトの新しいインスタンスを初期化します。

public EncryptionOptions(string ownerPassword, string userPassword)

パラメータ

  • ownerPassword string: オーナーパスワード。
  • userPassword string: ユーザーパスワード。

プロパティ

OwnerPassword

オーナーパスワード。

public string OwnerPassword { get; set; }

プロパティ値

string

UserPassword

ユーザーパスワード。

public string UserPassword { get; set; }

プロパティ値

string

名前空間: Documentize アセンブリ: Documentize.dll

クラス FileDataSource

情報

プラグインの読み込みおよび保存操作のためのファイルデータを表します。

public sealed class FileDataSource : IDataSource

継承

objectFileDataSource

実装

継承メンバー

コンストラクター

FileDataSource(string)

指定されたパスで新しいファイルデータソースを初期化します。

public FileDataSource(string path)

パラメーター

  • path string: ソースファイルへのパスを表す文字列。

プロパティ

DataType

データソースの種類。

public DataType DataType { get; }

プロパティ値

DataType

Path

現在のデータのファイルへのパスを取得します。

public string Path { get; }

プロパティ値

string

名前空間: Documentize アセンブリ: Documentize.dll

クラス FileResult

情報

ファイルへの文字列パスの形で操作結果を表します。

public sealed class FileResult : IOperationResult  

継承

object
FileResult

実装

継承メンバー

プロパティ

Data

生データを取得します。

public object Data { get; }  

プロパティ値

object

IsFile

結果が出力ファイルへのパスであるかどうかを示します。

public bool IsFile { get; }  

プロパティ値

bool

IsStream

結果が出力ストリームであるかどうかを示します。

public bool IsStream { get; }  

プロパティ値

bool

IsString

結果がテキスト文字列であるかどうかを示します。

public bool IsString { get; }  

プロパティ値

bool

メソッド

ToFile()

結果をファイルに変換しようとします。

public string ToFile()  

戻り値

string : 結果がファイルの場合は出力ファイルへのパスを表す文字列; それ以外の場合は null

ToStream()

結果をストリームオブジェクトに変換しようとします。

public Stream ToStream()  

戻り値

Stream : 結果がストリームの場合は出力データを表すストリームオブジェクト; それ以外の場合は null

名前空間: Documentize
アセンブリ: Documentize.dll

クラス HtmlConverter

情報

Documentize.HtmlConverter プラグインを表します。PDF ドキュメントを HTML 形式に、HTML ドキュメントを PDF 形式に変換するために使用されます。

public sealed class HtmlConverter : IDisposable

継承

objectHtmlConverter

実装

継承されたメンバー

この例では、PDF を HTML ドキュメントに変換する方法を示します。

// HtmlConverter を作成
var plugin = new HtmlConverter();
// 出力データ型を埋め込まれたリソースを持つファイルとして設定するために PdfToHtmlOptions オブジェクトを作成
var opt = new PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType.FileWithEmbeddedResources);
// 入力ファイルパスを追加
opt.AddInput(new FileDataSource(inputPath));
// 出力ファイルパスを設定
opt.AddOutput(new FileDataSource(outputPath));
plugin.Process(opt);

この例では、HTML を PDF ドキュメントに変換する方法を示します。

// HtmlConverter を作成
var plugin = new HtmlConverter();
// HtmlToPdfOptions を作成
var opt = new HtmlToPdfOptions();
// 入力ファイルパスを追加
opt.AddInput(new FileDataSource(inputPath));
// 出力ファイルパスを設定
opt.AddOutput(new FileDataSource(outputPath));
plugin.Process(opt);

コンストラクター

HtmlConverter()

public HtmlConverter()

メソッド

Dispose()

IDisposable の実装。

public void Dispose()

Process(IPluginOptions)

指定されたパラメーターで Documentize.HtmlConverter の処理を開始します。

public ResultContainer Process(IPluginOptions options)

パラメーター

  • options IPluginOptions: Documentize.HtmlConverter の指示を含むオプションオブジェクト。

戻り値

ResultContainer : 操作の結果を含む Documentize.ResultContainer オブジェクトです。

名前空間: Documentize アセンブリ: Documentize.dll

クラス HtmlToPdfOptions

情報

Documentize.HtmlConverterプラグインのHTMLからPDFへの変換オプションを表します。

public sealed class HtmlToPdfOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsHtmlToPdfOptions

実装

継承されたメンバー

コンストラクター

HtmlToPdfOptions()

Documentize.HtmlToPdfOptionsオブジェクトの新しいインスタンスを初期化します。

public HtmlToPdfOptions()

プロパティ

BasePath

HTMLファイルのベースパス/URL。

public string BasePath { get; set; }

プロパティ値

string

HtmlMediaType

レンダリング中に使用される可能性のあるメディアタイプを取得または設定します。

public HtmlMediaType HtmlMediaType { get; set; }

プロパティ値

HtmlMediaType

IsRenderToSinglePage

ドキュメント全体を単一ページにレンダリングするかどうかを取得または設定します。

public bool IsRenderToSinglePage { get; set; }

プロパティ値

bool

PageInfo

ドキュメントのページ情報を取得または設定します。

public PageInfo PageInfo { get; set; }

プロパティ値

PageInfo

PageLayoutOption

レイアウトオプションを取得または設定します。

public HtmlPageLayoutOption PageLayoutOption { get; set; }

プロパティ値

HtmlPageLayoutOption

Namespace: Documentize Assembly: Documentize.dll

クラス ImageExtractor

情報

Documentize.ImageExtractor プラグインを表します。PDF ドキュメントから画像を抽出するために使用されます。

public class ImageExtractor : PdfExtractor, IDisposable

継承

objectPdfExtractorImageExtractor

実装

継承されたメンバー

この例は、PDF ドキュメントから画像を抽出する方法を示しています。

// 画像を抽出するための ImageExtractor オブジェクトを作成
using (var plugin = new ImageExtractor())
{
    // ImageExtractorOptions を作成
    var opt = new ImageExtractorOptions();

    // 入力ファイルパスを追加
    opt.AddInput(new FileDataSource(inputPath));
    // 出力ディレクトリを設定
    opt.AddInput(new FileDataSource("D:\\"));

    // 抽出処理を実行
    var resultContainer = plugin.Process(opt);

    // ResultContainer オブジェクトから画像を取得
    var imageExtracted = resultContainer.ResultCollection[0].ToFile();
}

コンストラクタ

ImageExtractor()

public ImageExtractor()

名前空間: Documentize アセンブリ: Documentize.dll

クラス ImageExtractorOptions

情報

Documentize.ImageExtractor プラグインの画像抽出オプションを表します。

public sealed class ImageExtractorOptions : PdfExtractorOptions, IPluginOptions

継承

objectPdfExtractorOptionsImageExtractorOptions

実装

継承されたメンバー

コメント

入力 PDF ドキュメントを表すデータ(ファイル、ストリーム)を追加するための機能を継承します。

コンストラクタ

ImageExtractorOptions()

Documentize.ImageExtractorOptions オブジェクトの新しいインスタンスを初期化します。

public ImageExtractorOptions()

プロパティ

OperationName

操作の名前を返します。

public override string OperationName { get; }

プロパティ値

string

名前空間: Documentize アセンブリ: Documentize.dll

クラス JpegConverter

情報

Documentize.JpegConverter プラグインを表します。PDF ドキュメントを JPEG 形式に変換するために使用されます。

public sealed class JpegConverter

継承

objectJpegConverter

継承されたメンバー

この例は、PDF ドキュメントを JPEG 形式に変換する方法を示しています。

// JpegConverter を作成
var plugin = new JpegConverter();
// 指示を設定するための PdfToJpegOptions オブジェクトを作成
var opt = new PdfToJpegOptions();
// 入力ファイルパスを追加
opt.AddInput(new FileDataSource(inputPath));
// 出力ファイルパスを設定
opt.AddOutput(new DirectoryDataSource(outputPath));
// プロセスを実行
plugin.Process(opt);

コンストラクター

JpegConverter()

public JpegConverter()

メソッド

Process(PdfToJpegOptions)

指定されたパラメーターで Documentize.JpegConverter の処理を開始します。

public ResultContainer Process(PdfToJpegOptions options)

パラメーター

  • options PdfToJpegOptions: Documentize.JpegConverter の指示を含むオプションオブジェクト。

戻り値

ResultContainer : 操作の結果を含む ResultContainer オブジェクト。

名前空間: Documentize アセンブリ: Documentize.dll

クラス MergeOptions

情報

Documentize.Merger プラグインのマージオプションを表します。

public sealed class MergeOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsMergeOptions

実装

継承メンバー

コンストラクタ

MergeOptions()

デフォルトオプションで Documentize.MergeOptions オブジェクトの新しいインスタンスを初期化します。

public MergeOptions()

名前空間: Documentize アセンブリ: Documentize.dll

クラス ObjectResult

情報

文字列の形式で操作結果を表します。

public sealed class ObjectResult : IOperationResult  

継承

object
ObjectResult

実装

継承したメンバー

プロパティ

Data

生のデータを取得します。

public object Data { get; }  

プロパティの値

object

IsFile

結果が出力ファイルへのパスであるかどうかを示します。

public bool IsFile { get; }  

プロパティの値

bool

IsObject

結果がオブジェクトであるかどうかを示します。

public bool IsObject { get; }  

プロパティの値

bool

IsStream

結果が出力ファイルへのパスであるかどうかを示します。

public bool IsStream { get; }  

プロパティの値

bool

IsString

結果が文字列であるかどうかを示します。

public bool IsString { get; }  

プロパティの値

bool

Text

結果の文字列表現を返します。

public string Text { get; }  

プロパティの値

string

メソッド

ToFile()

結果をファイルに変換しようとします。

public string ToFile()  

戻り値

string : 結果がファイルである場合の出力ファイルへのパスを表す文字列; そうでなければ null

ToStream()

結果をストリームオブジェクトに変換しようとします。

public Stream ToStream()  

戻り値

Stream : 結果がストリームである場合の出力データを表すストリームオブジェクト; そうでなければ null

ToString()

結果を文字列に変換しようとします。

public override string ToString()  

戻り値

string : 結果が文字列である場合はテキストコンテンツを表す文字列; そうでなければ base.ToString() を返します。

名前空間: Documentize
アセンブリ: Documentize.dll

クラス OptimizeOptions

情報

Documentize.Optimizer プラグインの最適化オプションを表します。

public sealed class OptimizeOptions : PluginBaseOptions, IPluginOptions  

継承

object
PluginBaseOptions
OptimizeOptions

実装

継承メンバー

コンストラクター

OptimizeOptions()

Documentize.OptimizeOptions オブジェクトの新しいインスタンスをデフォルトのオプションで初期化します。
ドキュメントを線形化して、

  • 最初のページをできるだけ早く開く;
  • 次のページをできるだけ早く表示するか、リンクをたどって次のページに進む;
  • ページのデータが遅いチャネルを介して配信される際に、到着するにつれてページをインクリメンタルに表示する(最も有用なデータを最初に表示する);
  • ユーザーがリンクをたどるなどのインタラクションを、全ページが受信されて表示される前に実行できるようにする。
public OptimizeOptions()  

名前空間: Documentize
アセンブリ: Documentize.dll

クラス PdfAConverter

情報

PDF/A形式のPDF文書の変換を処理し、PDF/Aの適合性の検証を行うプラグインを表します。

public sealed class PdfAConverter  

継承

object
PdfAConverter

継承メンバー

この例では、PDF文書のPDF/A形式(この場合はPDF/A-1a)に対する適合性を検証する方法を示します:

// 検証プロセスを設定するためのオプションクラスを作成  
var options = new PdfAValidateOptions  
{  
    PdfAVersion = PdfAStandardVersion.PDF_A_1A  
};  

// 検証する1つ以上のファイルを追加  
options.AddInput(new FileDataSource("path_to_your_first_pdf_file.pdf")); // 実際のファイルパスに置き換えてください  
options.AddInput(new FileDataSource("path_to_your_second_pdf_file.pdf"));  
// 必要に応じてさらにファイルを追加  

// プラグインインスタンスを作成  
var plugin = new PdfAConverter();  

// 検証を実行し、結果を取得  
var resultContainer = plugin.Process(options);  

// 各ファイルの検証結果を確認するにはresultContainer.ResultCollectionプロパティをチェックします:  
for (var i = 0; i < resultContainer.ResultCollection.Count; i++)  
{  
    var result = resultContainer.ResultCollection[i];  
    var validationResult = (PdfAValidationResult) result.Data;  
    var isValid = validationResult.IsValid; // i番目の文書の検証結果  
}  

この例では、PDF文書をPDF/A形式(この場合はPDF/A-3b)に変換する方法を示します:

// 変換プロセスを設定するためのオプションクラスを作成  
var options = new PdfAConvertOptions  
{  
    PdfAVersion = PdfAStandardVersion.PDF_A_3B  
};  

// ソースファイルを追加  
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf")); // 実際のファイルパスに置き換えてください  

// 変換されたファイルを保存するパスを追加  
options.AddOutput(new FileDataSource("path_to_the_converted_file.pdf"));  

// プラグインインスタンスを作成  
var plugin = new PdfAConverter();  

// 変換を実行  
plugin.Process(options);  

コンストラクター

PdfAConverter()

public PdfAConverter()  

メソッド

Process(IPluginOptions)

指定されたオプションでPDF/A変換または検証プロセスを開始します。

public ResultContainer Process(IPluginOptions options)  

パラメーター

  • options IPluginOptions: プラグインの指示を含むオプションオブジェクト。Documentize.PdfAConvertOptionsまたはDocumentize.PdfAValidateOptionsクラスのインスタンスである必要があります。

戻り値

ResultContainer : 処理の結果を含むDocumentize.ResultContainerオブジェクト。

名前空間: Documentize
アセンブリ: Documentize.dll

クラス PdfAConvertOptions

情報

Documentize.PdfAConverter プラグインを使用して PDF ドキュメントを PDF/A 形式に変換するためのオプションを表します。

public sealed class PdfAConvertOptions : PdfAOptionsBase, IPluginOptions  

継承

object
PdfAOptionsBase
PdfAConvertOptions

実装

継承メンバー

コンストラクター

PdfAConvertOptions()

public PdfAConvertOptions()  

プロパティ

Outputs

追加されたターゲット(ファイルまたはストリームデータソース)のコレクションを取得します。

public List<idatasource> Outputs { get; }  

プロパティ値

List<IDataSource>

メソッド

AddOutput(IDataSource)

新しい結果保存ターゲットを追加します。

public void AddOutput(IDataSource dataSource)  

パラメーター

  • dataSource IDataSource: 操作結果を保存するためのターゲット(ファイルまたはストリームデータソース)。 :

名前空間: Documentize
アセンブリ: Documentize.dll

クラス PdfAOptionsBase

情報

Documentize.PdfAConverter プラグインオプションのベース クラスを表します。このクラスは、PDF/A 変換と検証プロセスを構成するためのプロパティとメソッドを提供します。

Documentize.PdfAConverter プラグインオプションのベース クラスを表します。 このクラスは、PDF/A 変換と検証プロセスを構成するためのプロパティとメソッドを提供します。

public abstract class PdfAOptionsBase : IPluginOptions

継承

objectPdfAOptionsBase

派生

実装

継承メンバー

コンストラクター

PdfAOptionsBase()

protected PdfAOptionsBase()

プロパティ

AlignText

PDF/A 変換プロセス中にテキストの整列を維持するために追加手段が必要かどうかを示す値を取得または設定します。

public bool AlignText { get; set; }

プロパティ値

bool

備考

true に設定すると、変換プロセスは元のテキストセグメントの境界を復元しようとします。 ほとんどの文書では、このプロパティをデフォルトのfalse値から変更する必要はありません。 デフォルトの変換プロセス中にテキスト整列は変更されないためです。

CheckDifferentNamesInFontDictionaries

ソース PDF ドキュメントが PDF 仕様に対応していない場合の PDF/A 変換を制御するフラグを取得します。

public bool CheckDifferentNamesInFontDictionaries { get; set; }

プロパティ値

bool

ErrorAction

変換できないオブジェクトに対して実行されるアクションを取得または設定します。

public ConvertErrorAction ErrorAction { get; set; }

プロパティ値

ConvertErrorAction

IccProfileFileName

デフォルトの ICC (国際色彩協会) プロファイルの代わりに PDF/A 変換で使用されるプロファイルのファイル名を取得または設定します。

public string IccProfileFileName { get; set; }

プロパティ値

string

Inputs

データソースのコレクションを取得します。

public List<idatasource> Inputs { get; }

プロパティ値

List<IDataSource>

IsLowMemoryMode

PDF/A 変換プロセス中に低メモリモードが有効になっているかどうかを示す値を取得または設定します。

public bool IsLowMemoryMode { get; set; }

プロパティ値

bool

LogOutputSource

ログ出力のデータソースを取得または設定します。

public IDataSource LogOutputSource { get; set; }

プロパティ値

IDataSource

OptimizeFileSize

PDF/A 変換プロセス中にファイルサイズを縮小するかどうかを示す値を取得または設定します。

public bool OptimizeFileSize { get; set; }

プロパティ値

bool

備考

trueに設定すると、変換プロセスは結果として得られるファイルサイズを最小限に抑えようとします。 これにより、変換プロセスのパフォーマンスに影響を与える可能性があります。

PdfAVersion

検証または変換のために使用される PDF/A 仕様のバージョンを取得または設定します。

public PdfAStandardVersion PdfAVersion { get; set; }

プロパティ値

PdfAStandardVersion

備考

PDF/A 仕様のバージョンは、PDF/A 検証および変換の準拠レベルを決定するために使用されます。 バージョンが Documentize.PdfAStandardVersion.Auto に設定されている場合、システムはドキュメントメタデータに基づいて検証のために適切な PDF/A 仕様バージョンを自動的に決定します。 PDF/A 変換プロセスの場合、Documentize.PdfAStandardVersion.Auto は PDF/A-1b 仕様バージョンをデフォルトとします。

SoftMaskAction

ソフトマスク付き画像の変換中に実行されるアクションを取得または設定します。

public ConvertSoftMaskAction SoftMaskAction { get; set; }

プロパティ値

ConvertSoftMaskAction

メソッド

AddInput(IDataSource)

コレクションに新しいデータソースを追加します。

public void AddInput(IDataSource dataSource)

パラメータ

名前空間: Documentize アセンブリ: Documentize.dll

クラス PdfAValidateOptions

情報

Documentize.PdfAConverterプラグインを使用してPDF文書のPDF/A適合性を検証するためのオプションを表します。

public sealed class PdfAValidateOptions : PdfAOptionsBase, IPluginOptions

継承

objectPdfAOptionsBasePdfAValidateOptions

実装

継承メンバー

コンストラクター

PdfAValidateOptions()

public PdfAValidateOptions()

名前空間: Documentize アセンブリ: Documentize.dll

クラス PdfAValidationResult

情報

PDF/A 検証プロセスの結果を表します。

public sealed class PdfAValidationResult  

継承

object
PdfAValidationResult

継承メンバー

フィールド

  • DataSource 検証されたデータソースを取得します。

フィールドの値

IDataSource

IsValid

検証が成功したかどうかを示す値を取得します。

public readonly bool IsValid  

フィールドの値

bool

StandardVersion

検証に使用された PDF/A 標準バージョンを取得します。

public readonly PdfAStandardVersion StandardVersion  

フィールドの値

PdfAStandardVersion

名前空間: Documentize
アセンブリ: Documentize.dll

クラス PdfChatGpt

情報

PdfChatGptプラグインを表します。

public sealed class PdfChatGpt : IDisposable

継承

objectPdfChatGpt

実装

継承メンバー

この例では、リクエストにメッセージを追加することでPdfChatGptプラグインを使用する方法を示します。

using (var plugin = new PdfChatGpt())
{
    var options = new PdfChatGptRequestOptions();
    options.AddOutput(new FileDataSource("PdfChatGPT_output.pdf")); // 出力ファイルパスを追加します。
    options.ApiKey = "Your API key."; // APIにアクセスするためのキーを提供する必要があります。
    options.MaxTokens = 1000; // チャットの完成に生成する最大トークン数。

    // リクエストメッセージを追加します。
    options.Messages.Add(new Message
    {
        Content = "You are a helpful assistant.",
        Role = Role.System
    });
    options.Messages.Add(new Message
    {
        Content = "What is the biggest pizza diameter ever made?",
        Role = Role.User
    });

    // リクエストを処理します。
    var result = await plugin.ProcessAsync(options);

    var fileResultPath = result.ResultCollection[0].Data;
    var chatCompletionObject = result.ResultCollection[1].Data as ChatCompletion; // ChatGPT APIのチャット補完オブジェクト。
}

この例では、リクエストに1つのメッセージを追加することでPdfChatGptプラグインを使用する方法を示します。

using (var plugin = new PdfChatGpt())
{
    var options = new PdfChatGptRequestOptions();
    options.AddOutput(new FileDataSource("PdfChatGPT_output.pdf")); // 出力ファイルパスを追加します。
    options.ApiKey = "Your API key."; // APIにアクセスするためのキーを提供する必要があります。
    options.MaxTokens = 1000; // チャットの完成に生成する最大トークン数。

    // リクエストメッセージを追加します。
    // この場合、Content = "You are a helpful assistant." のシステムメッセージがデフォルトで追加されます。
    // クエリメッセージの役割はデフォルトで "user" です。
    options.Query = "What is the lowest temperature recorded on the Earth?";

    // リクエストを処理します。
    var result = await plugin.ProcessAsync(options);

    var fileResultPath = result.ResultCollection[0].Data;
    var chatCompletionObject = result.ResultCollection[1].Data as ChatCompletion; // ChatGPT APIのチャット補完オブジェクト。
}

この例では、ファイルをメッセージソースとして追加することでPdfChatGptプラグインを使用する方法を示します。

using (var plugin = new PdfChatGpt())
{
    var options = new PdfChatGptRequestOptions();
    options.AddOutput(new FileDataSource("PdfChatGPT_output.pdf")); // 出力ファイルパスを追加します。

    // PDFテキストソースを追加します。
    // 複数のソースがある場合、各ドキュメントからのテキストは "user" の役割を持つ別々のメッセージとしてリクエストメッセージコレクションに追加されます。
    options.AddInput(new FileDataSource("TextSource.pdf"));

    options.ApiKey = "Your API key."; // APIにアクセスするためのキーを提供する必要があります。
    options.MaxTokens = 1000; // チャットの完成に生成する最大トークン数。

    // リクエストメッセージを追加します。
    // この場合、Content = "You are a helpful assistant." のシステムメッセージがデフォルトで追加されます。
    // クエリメッセージの役割はデフォルトで "user" です。
    options.Query = "How many letters in the provided text?";

    // リクエストを処理します。
    var result = await plugin.ProcessAsync(options);

    var fileResultPath = result.ResultCollection[0].Data;
    var chatCompletionObject = result.ResultCollection[1].Data as ChatCompletion; // ChatGPT APIのチャット補完オブジェクト。
}

注意事項

Documentize.PdfChatGptオブジェクトは、ChatGPTに直接リクエストを送信するため、またはPDFファイルソースを追加して応答を出力ソースに保存するために使用されます。

コンストラクタ

PdfChatGpt()

Documentize.PdfChatGptオブジェクトの新しいインスタンスを初期化します。

public PdfChatGpt()

メソッド

Dispose()

IDisposableの実装。実際には、PdfChatGptには必要ありません。

public void Dispose()

Process(IPluginOptions)

このメソッドには同期版はありません。代わりにProcessAsyncメソッドを使用してください。

public ResultContainer Process(IPluginOptions options)

パラメータ

  • options IPluginOptions: PdfChatGptへの指示を含むオプションオブジェクト。

戻り値

ResultContainer : #### 例外

NotImplementedException

ProcessAsync(IPluginOptions)

指定されたパラメータでPdfChatGpt処理を開始します。

public Task<resultcontainer> ProcessAsync(IPluginOptions options)

パラメータ

  • options IPluginOptions: PdfChatGptへの指示を含むオプションオブジェクト。

戻り値

Task<ResultContainer>

非同期操作を表すタスクオブジェクト。

例外

ArgumentException : InvalidOperationException

SetCancellationToken(CancellationToken)

キャンセルトークンを設定します。

public void SetCancellationToken(CancellationToken cancellationToken)

パラメータ

名前空間: Documentize アセンブリ: Documentize.dll

クラス PdfChatGptOptions

情報

Documentize.PdfChatGpt プラグインのオプションを表します。

public class PdfChatGptOptions : IPluginOptions  

継承

object
PdfChatGptOptions

派生

実装

継承されたメンバー

コンストラクタ

PdfChatGptOptions()

Documentize.PdfChatGptOptions オブジェクトの新しいインスタンスを初期化します。

public PdfChatGptOptions()  

プロパティ

Inputs

public List<idatasource> Inputs { get; }  

プロパティ値

List<IDataSource>

Outputs

public List<idatasource> Outputs { get; }  

プロパティ値

List<IDataSource>

メソッド

AddInput(IDataSource)

PdfChatGpt プラグインのデータコレクションに新しいデータソースを追加します。

public void AddInput(IDataSource dataSource)  

パラメーター

  • dataSource IDataSource: 追加するデータソース(ファイルまたはストリーム)。

AddOutput(IDataSource)

PdfChatGpt プラグインのデータコレクションに新しい保存データソースを追加します。

public void AddOutput(IDataSource saveDataSource)  

パラメーター

  • saveDataSource IDataSource: 操作結果を保存するためのデータソース(ファイルまたはストリーム)。

Namespace: Documentize
Assembly: Documentize.dll

クラス PdfChatGptRequestOptions

情報

Documentize.PdfChatGpt プラグインのオプションを表します。

public class PdfChatGptRequestOptions : PdfChatGptOptions, IPluginOptions

継承

objectPdfChatGptOptionsPdfChatGptRequestOptions

実装

継承メンバー

コンストラクター

PdfChatGptRequestOptions()

Documentize.PdfChatGptRequestOptions オブジェクトの新しいインスタンスをデフォルトのオプションで初期化します。

public PdfChatGptRequestOptions()

PdfChatGptRequestOptions(string, string, string, string)

オプションを指定して Documentize.PdfChatGptRequestOptions オブジェクトの新しいインスタンスを初期化します。

public PdfChatGptRequestOptions(string apiKey, string model, string apiUrl, string query)

パラメーター

プロパティ

ApiKey

ChatGPT API へのアクセスキーを取得または設定します。

public string ApiKey { get; set; }

プロパティ値

string

ApiUrl

ChatGPT API の URL を取得または設定します。

public string ApiUrl { get; set; }

プロパティ値

string

MaxTokens

レスポンス内のトークンの最大数。 デフォルト値は null で、無限を意味します。

public int? MaxTokens { get; set; }

プロパティ値

int?

Messages

Documentize.Message オブジェクトのコレクションを取得または設定します。

public List<message> Messages { get; set; }

プロパティ値

List<Message>

Model

使用するモデルの ID を設定または取得します。

public string Model { get; set; }

プロパティ値

string

NumberOfChoices

各入力メッセージのために生成するチャット完了オプションの数。

public int NumberOfChoices { get; set; }

プロパティ値

int

Query

ChatGPT への文字列リクエストを取得または設定します。 空でない場合、これはコレクション内の最初のメッセージとなり、リクエストに送信されます。

public string Query { get; set; }

プロパティ値

string

Temperature

使用するサンプリング温度、範囲は 0 から 2。 高い値(例えば 0.8)は出力をよりランダムにし、 低い値(例えば 0.2)はより焦点を絞った決定論的なものにします。 デフォルト値は 1 です。

public double Temperature { get; set; }

プロパティ値

double

名前空間: Documentize アセンブリ: Documentize.dll

クラス PdfConverterOptions

情報

Pdf コンバータ プラグインのオプションを表します。

public abstract class PdfConverterOptions : IPluginOptions  

継承

object
PdfConverterOptions

派生

実装

継承されたメンバー

プロパティ

入力

PdfConverterOptions プラグインデータコレクションを返します。

public List<idatasource> Inputs { get; }  

プロパティ値

List<IDataSource>

出力

保存操作結果の追加対象コレクションを取得します。

public List<idatasource> Outputs { get; }  

プロパティ値

List<IDataSource>

メソッド

AddInput(IDataSource)

PdfConverter プラグインデータコレクションに新しいデータソースを追加します。

public void AddInput(IDataSource dataSource)  

パラメータ

  • dataSource IDataSource: 追加するデータソース。

AddOutput(IDataSource)

PdfToXLSXConverterOptions プラグインデータコレクションに新しいデータソースを追加します。

public void AddOutput(IDataSource saveDataSource)  

パラメータ

  • saveDataSource IDataSource: 保存操作結果のためのデータソース (ファイルまたはストリーム)。

例外

NotImplementedException

名前空間: Documentize
アセンブリ: Documentize.dll

クラス PdfExtractor

情報

PDF 文書のページに存在する可能性のあるテキスト、画像、その他のタイプのコンテンツを抽出するための基本機能を表します。

public abstract class PdfExtractor : IDisposable

継承

objectPdfExtractor

派生

実装

継承されたメンバー

この例では、PDF 文書のテキストコンテンツを抽出する方法を示します。

// PDF コンテンツを抽出するために TextExtractor オブジェクトを作成
using (TextExtractor extractor = new TextExtractor())
{
    // 指示を設定するために TextExtractorOptions オブジェクトを作成
    textExtractorOptions = new TextExtractorOptions();

    // 入力ファイルパスを追加
    textExtractorOptions.AddInput(new FileDataSource(inputPath));

    // 抽出プロセスを実行
    ResultContainer resultContainer = extractor.Process(textExtractorOptions);

    // ResultContainer オブジェクトから抽出したテキストを取得
    string textExtracted = resultContainer.ResultCollection[0].ToString();
}

備考

Documentize.TextExtractor オブジェクトはテキストを抽出するために使用され、Documentize.ImageExtractor は画像を抽出するために使用されます。

コンストラクター

PdfExtractor()

protected PdfExtractor()

メソッド

Dispose()

IDisposable の実装。実際には、PdfExtractor のために必要ではありません。

public void Dispose()

Process(IPluginOptions)

指定されたパラメータで PdfExtractor の処理を開始します。

public ResultContainer Process(IPluginOptions pdfExtractorOptions)

パラメーター

  • pdfExtractorOptions IPluginOptions: PdfExtractor のための指示を含むオプションオブジェクト。

戻り値

ResultContainer : 抽出の結果を含む ResultContainer オブジェクト。

名前空間: Documentize アセンブリ: Documentize.dll

クラス PdfExtractorOptions

情報

TextExtractorとImageExtractorプラグインのオプションを表します。

public abstract class PdfExtractorOptions : IPluginOptions

継承

objectPdfExtractorOptions

派生

実装

継承されたメンバー

備考

Documentize.PdfExtractorOptionsは、入力PDF文書を表すデータ(ファイル、ストリーム)を追加するための基本機能を含んでいます。 この代わりにDocumentize.TextExtractorOptionsまたはImageExtractorOptionsを作成してください。

プロパティ

入力

PdfExtractorプラグインデータコレクションを返します。

public List<idatasource> Inputs { get; }

プロパティ値

List<IDataSource>

操作名

操作名を返します。

public virtual string OperationName { get; }

プロパティ値

string

メソッド

AddInput(IDataSource)

PdfExtractorプラグインデータコレクションに新しいデータソースを追加します。

public void AddInput(IDataSource dataSource)

パラメーター

  • dataSource IDataSource: 追加するデータソース。 :

名前空間: Documentize アセンブリ: Documentize.dll

クラス PdfToDocOptions

情報

Documentize.DocConverter プラグインの PDF から DOC への変換オプションを表します。

public sealed class PdfToDocOptions : PdfConverterOptions, IPluginOptions

継承

objectPdfConverterOptionsPdfToDocOptions

実装

継承されたメンバー

コンストラクタ

PdfToDocOptions()

Documentize.PdfToDocOptions オブジェクトの新しいインスタンスをデフォルトオプションで初期化します。

public PdfToDocOptions()

名前空間: Documentize アセンブリ: Documentize.dll

クラス PdfToHtmlOptions

情報

Documentize.HtmlConverter プラグイン用の PDF から HTML への変換オプションを表します。

public sealed class PdfToHtmlOptions : PdfConverterOptions, IPluginOptions

継承

objectPdfConverterOptionsPdfToHtmlOptions

実装

継承されたメンバー

コンストラクター

PdfToHtmlOptions()

Documentize.PdfToHtmlOptions オブジェクトの新しいインスタンスをデフォルトのオプションで初期化します。

public PdfToHtmlOptions()

PdfToHtmlOptions(SaveDataType)

指定された出力データ型のための Documentize.PdfToHtmlOptions オブジェクトの新しいインスタンスを初期化します。

public PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType outputDataType)

パラメーター

プロパティ

OutputDataType

出力データ型を取得します。

public PdfToHtmlOptions.SaveDataType OutputDataType { get; }

プロパティ値

PdfToHtmlOptions.SaveDataType

名前空間: Documentize アセンブリ: Documentize.dll

クラス PdfToJpegOptions

情報

Documentize.JpegConverterプラグインのPDFからJPEGへの変換オプションを表します。

public sealed class PdfToJpegOptions : PluginBaseOptions, IPluginOptions  

継承

object
PluginBaseOptions
PdfToJpegOptions

実装

継承メンバー

コンストラクター

PdfToJpegOptions()

Documentize.PdfToJpegOptionsオブジェクトの新しいインスタンスを初期化します。

public PdfToJpegOptions()  

プロパティ

OutputResolution

結果の画像の解像度値を取得または設定します。

public int OutputResolution { get; set; }  

プロパティ値

int

PageList

処理するページのリストを取得または設定します。

public List<int> PageList { get; set; }  

プロパティ値

List<int>

Quality

出力品質を取得または設定します。

public int Quality { get; set; }  

プロパティ値

int

名前空間: Documentize
アセンブリ: Documentize.dll

クラス PdfToPngOptions

情報

Documentize.PngConverter プラグインの PDF から PNG への変換オプションを表します。

public sealed class PdfToPngOptions : PluginBaseOptions, IPluginOptions  

継承

object
PluginBaseOptions
PdfToPngOptions

実装

継承メンバー

コンストラクター

PdfToPngOptions()

Documentize.PdfToPngOptions オブジェクトの新しいインスタンスを初期化します。

public PdfToPngOptions()  

プロパティ

OutputResolution

生成される画像の解像度値を取得または設定します。

public int OutputResolution { get; set; }  

プロパティ値

int

PageList

処理するページのリストを取得または設定します。

public List<int> PageList { get; set; }  

プロパティ値

List<int>

名前空間: Documentize
アセンブリ: Documentize.dll

クラス PdfToTiffOptions

情報

Documentize.TiffConverterプラグインのPDFからTIFFへのコンバータオプションを表します。

public sealed class PdfToTiffOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsPdfToTiffOptions

実装

継承されたメンバー

コンストラクタ

PdfToTiffOptions()

Documentize.PdfToTiffOptionsオブジェクトの新しいインスタンスを初期化します。

public PdfToTiffOptions()

プロパティ

MultiPage

すべてのページを1つのマルチページTIFFとして保存することを許可するフラグを取得または設定します。

public bool MultiPage { get; set; }

プロパティ値

bool

OutputResolution

生成される画像の解像度値を取得または設定します。

public int OutputResolution { get; set; }

プロパティ値

int

PageList

処理のためのページのリストを取得または設定します。

public List<int> PageList { get; set; }

プロパティ値

List<int>

名前空間: Documentize アセンブリ: Documentize.dll

クラス PdfToXlsOptions

情報

Documentize.XlsConverter プラグインの PDF から XLSX への変換オプションを表します。

public sealed class PdfToXlsOptions : PdfConverterOptions, IPluginOptions

継承

objectPdfConverterOptionsPdfToXlsOptions

実装

継承されたメンバー

コンストラクター

PdfToXlsOptions()

デフォルトのオプションで Documentize.PdfToXlsOptions オブジェクトの新しいインスタンスを初期化します。

public PdfToXlsOptions()

プロパティ

Format

出力形式。

public PdfToXlsOptions.ExcelFormat Format { get; set; }

プロパティの値

PdfToXlsOptions.ExcelFormat

InsertBlankColumnAtFirst

ワークシートの最初の列として空白の列を挿入する必要がある場合は true に設定します。 デフォルト値は false で、空白の列は挿入されません。

public bool InsertBlankColumnAtFirst { get; set; }

プロパティの値

bool

MinimizeTheNumberOfWorksheets

結果のブックのワークシートの数を最小限に抑える必要がある場合は true に設定します。 デフォルト値は false で、各 PDF ページを別々のワークシートとして保存します。

public bool MinimizeTheNumberOfWorksheets { get; set; }

プロパティの値

bool

名前空間: Documentize アセンブリ: Documentize.dll

クラス PluginBaseOptions

情報

プラグインの基本オプションを表します。

public class PluginBaseOptions : IPluginOptions  

継承

object
PluginBaseOptions

派生

実装

継承されたメンバー

プロパティ

CloseInputStreams

操作が完了した後、入力ストリームを閉じます。

public bool CloseInputStreams { get; set; }  

プロパティの値

bool

CloseOutputStreams

操作が完了した後、出力ストリームを閉じます。

public bool CloseOutputStreams { get; set; }  

プロパティの値

bool

Inputs

操作のための入力データを返します。

public List<idatasource> Inputs { get; }  

プロパティの値

List<IDataSource>

Outputs

操作のための出力データを返します。

public List<idatasource> Outputs { get; }  

プロパティの値

List<IDataSource>

メソッド

AddInput(IDataSource)

入力に新しいデータを追加します。

public void AddInput(IDataSource dataSource)  

パラメーター

AddOutput(IDataSource)

出力に新しいデータを追加します。

public void AddOutput(IDataSource saveDataSource)  

パラメーター

名前空間: Documentize
アセンブリ: Documentize.dll

クラス PngConverter

情報

Documentize.PngConverter プラグインを表します。PDF ドキュメントを PNG 形式に変換するために使用されます。

public sealed class PngConverter

継承

objectPngConverter

継承メンバー

この例は、PDF ドキュメントを PNG 形式に変換する方法を示しています。

// PngConverter を作成
var plugin = new PngConverter();
// 指示を設定するための PdfToPngOptions オブジェクトを作成
var opt = new PdfToPngOptions();
// 入力ファイルパスを追加
opt.AddInput(new FileDataSource(inputPath));
// 出力ファイルパスを設定
opt.AddOutput(new DirectoryDataSource(outputPath));
// プロセスを実行
plugin.Process(opt);

コンストラクタ

PngConverter()

public PngConverter()

メソッド

Process(PdfToPngOptions)

指定されたパラメータで Documentize.PngConverter の処理を開始します。

public ResultContainer Process(PdfToPngOptions options)

パラメータ

  • options PdfToPngOptions: Documentize.PngConverter のための指示を含むオプションオブジェクトです。

戻り値

ResultContainer : 操作の結果を含む ResultContainer オブジェクトです。

名前空間: Documentize アセンブリ: Documentize.dll

クラス ResizeOptions

情報

Documentize.Optimizer プラグインのリサイズオプションを表します。

public sealed class ResizeOptions : PluginBaseOptions, IPluginOptions  

継承

object
PluginBaseOptions
ResizeOptions

実装

継承メンバー

コンストラクタ

ResizeOptions()

デフォルトオプションで Documentize.ResizeOptions オブジェクトの新しいインスタンスを初期化します。

public ResizeOptions()  

プロパティ

PageSize

新しいページサイズを取得または設定します。

public PageSize PageSize { get; set; }  

プロパティ値

PageSize

名前空間: Documentize
アセンブリ: Documentize.dll

クラス ResultContainer

情報

プラグインの処理結果コレクションを含むコンテナを表します。

public class ResultContainer

継承

objectResultContainer

継承されたメンバー

プロパティ

ResultCollection

操作結果のコレクションを取得します

public List<ioperationresult> ResultCollection { get; }

プロパティ値

List<IOperationResult>

名前空間: Documentize アセンブリ: Documentize.dll

クラス SignOptions

情報

Documentize.Signature プラグインの署名オプションを表します。

public sealed class SignOptions : PluginBaseOptions, IPluginOptions

継承関係

objectPluginBaseOptionsSignOptions

実装

継承メンバー

コンストラクタ

SignOptions(string, string)

デフォルトのオプションで Documentize.SignOptions オブジェクトの新しいインスタンスを初期化します。

public SignOptions(string pfx, string password)

パラメータ

  • pfx string: pfx ファイルのパス。
  • password string: pfx ファイルのパスワード。

SignOptions(Stream, string)

デフォルトのオプションで Documentize.SignOptions オブジェクトの新しいインスタンスを初期化します。

public SignOptions(Stream pfx, string password)

パラメータ

  • pfx Stream: pfx ファイルのストリーム。
  • password string: pfx ファイルのパスワード。

プロパティ

Contact

署名の連絡先。

public string Contact { get; set; }

プロパティ値

string

Location

署名の場所。

public string Location { get; set; }

プロパティ値

string

Name

既存の署名フィールドの名前。 新しいフィールドを作成する場合は null。

public string Name { get; set; }

プロパティ値

string

PageNumber

署名が行われるページ番号。

public int PageNumber { get; set; }

プロパティ値

int

Reason

署名の理由。

public string Reason { get; set; }

プロパティ値

string

Rectangle

署名の矩形。

public Rectangle Rectangle { get; set; }

プロパティ値

Rectangle

Visible

署名の可視性。

public bool Visible { get; set; }

プロパティ値

bool

名前空間: Documentize アセンブリ: Documentize.dll

クラス SplitOptions

情報

Documentize.Splitter プラグインのための分割オプションを表します。

public sealed class SplitOptions : PluginBaseOptions, IPluginOptions  

継承

object
PluginBaseOptions
SplitOptions

実装

継承されたメンバー

コンストラクタ

SplitOptions()

デフォルトオプションで Documentize.SplitOptions オブジェクトの新しいインスタンスを初期化します。

public SplitOptions()  

名前空間: Documentize
アセンブリ: Documentize.dll

クラス StreamDataSource

情報

プラグインの読み込みおよび保存操作のためのストリームデータソースを表します。

public sealed class StreamDataSource : IDataSource

継承

objectStreamDataSource

実装

継承メンバー

コンストラクター

StreamDataSource(Stream)

指定されたストリームオブジェクトで新しいストリームデータソースを初期化します。

public StreamDataSource(Stream data)

パラメーター

  • data Stream: ストリームオブジェクト

プロパティ

Data

現在のデータソースのストリームオブジェクトを取得します。

public Stream Data { get; }

プロパティ値

Stream

DataType

データソースのタイプ(ストリーム)。

public DataType DataType { get; }

プロパティ値

DataType

名前空間: Documentize アセンブリ: Documentize.dll

クラス StreamResult

情報

Streamの形式で操作結果を表します。

public sealed class StreamResult : IOperationResult

継承

objectStreamResult

実装

継承メンバー

プロパティ

Data

生データを取得します。

public object Data { get; }

プロパティ値

object

IsFile

結果が出力ファイルへのパスであるかどうかを示します。

public bool IsFile { get; }

プロパティ値

bool

IsStream

結果が出力ファイルへのパスであるかどうかを示します。

public bool IsStream { get; }

プロパティ値

bool

IsString

結果が文字列であるかどうかを示します。

public bool IsString { get; }

プロパティ値

bool

メソッド

ToFile()

結果をファイルに変換しようとします。

public string ToFile()

戻り値

string : 結果がファイルの場合、出力ファイルへのパスを表す文字列。それ以外は null

ToStream()

結果をストリームオブジェクトに変換しようとします。

public Stream ToStream()

戻り値

Stream : 結果がストリームの場合、出力データを表すストリームオブジェクト。それ以外は null

名前空間: Documentize アセンブリ: Documentize.dll

クラス StringResult

情報

文字列の形式で操作結果を表します。

public sealed class StringResult : IOperationResult  

継承

object
StringResult

実装

継承されたメンバー

プロパティ

Data

生データを取得します。

public object Data { get; }  

プロパティ値

object

IsFile

結果が出力ファイルへのパスであるかどうかを示します。

public bool IsFile { get; }  

プロパティ値

bool

IsStream

結果が出力ファイルへのパスであるかどうかを示します。

public bool IsStream { get; }  

プロパティ値

bool

IsString

結果が文字列であるかどうかを示します。

public bool IsString { get; }  

プロパティ値

bool

Text

結果の文字列表現を返します。

public string Text { get; }  

プロパティ値

string

メソッド

ToFile()

結果をファイルに変換しようとします。

public string ToFile()  

戻り値

string : 結果がファイルの場合は出力ファイルへのパスを示す文字列。それ以外は null

ToStream()

結果をストリームオブジェクトに変換しようとします。

public Stream ToStream()  

戻り値

Stream : 結果がストリームの場合は出力データを示すストリームオブジェクト。それ以外は null

ToString()

結果を文字列に変換しようとします。

public override string ToString()  

戻り値

string : 結果が文字列の場合はテキスト内容を示す文字列。それ以外は base.ToString() を返します。

ネームスペース: Documentize
アセンブリ: Documentize.dll

クラス TableCellBuilder

情報

クラスはテーブルセルのビルダーを表します。

public class TableCellBuilder : TableRowBuilder

継承

objectTableBuilderTableRowBuilderTableCellBuilder

継承されたメンバー

メソッド

AddCell()

テーブルにセルを追加します。

public override TableCellBuilder AddCell()

戻り値

TableCellBuilder : 現在の Documentize.TableCellBuilder のインスタンス。

AddParagraph(params string[])

テーブルセルに段落を追加します。

public TableCellBuilder AddParagraph(params string[] paragraphs)

パラメーター

  • paragraphs string[]: 段落用のテキスト。

戻り値

TableCellBuilder : 現在の Documentize.TableCellBuilder のインスタンス。

名前空間: Documentize アセンブリ: Documentize.dll

クラス TableRowBuilder

情報

クラスはテーブル行のビルダーを表します。

public class TableRowBuilder : TableBuilder

継承

objectTableBuilderTableRowBuilder

派生

継承されたメンバー

メソッド

AddCell()

テーブル行にセルを追加します。

public virtual TableCellBuilder AddCell()

戻り値

TableCellBuilder : 作成された Documentize.TableCellBuilder のインスタンス。

AddRow()

AddRow をオーバーライドします。

public override TableRowBuilder AddRow()

戻り値

TableRowBuilder : 現在の Documentize.TableRowBuilder のインスタンス。

名前空間: Documentize アセンブリ: Documentize.dll

クラス TextExtractorOptions

情報

Documentize.TextExtractor プラグインのテキスト抽出オプションを表します。

public sealed class TextExtractorOptions : PdfExtractorOptions, IPluginOptions

継承

objectPdfExtractorOptionsTextExtractorOptions

実装

継承されたメンバー

この例では、PDF ドキュメントのテキストコンテンツを抽出する方法を示します。

// PDF コンテンツを抽出するために TextExtractor オブジェクトを作成
using (TextExtractor extractor = new TextExtractor())
{
    // テキストフォーマットモード (Pure または Raw - デフォルト) を設定するために TextExtractorOptions オブジェクトを作成
    extractorOptions = new TextExtractorOptions(TextExtractorOptions.TextFormattingMode.Pure);

    // データソースに入力ファイルパスを追加
    extractorOptions.AddInput(new FileDataSource(inputPath));

    // 抽出処理を実行
    ResultContainer resultContainer = extractor.Process(extractorOptions);

    // ResultContainer オブジェクトから抽出されたテキストを取得
    string textExtracted = resultContainer.ResultCollection[0].ToString();
}

備考

Documentize.TextExtractorOptions オブジェクトは、Documentize.TextExtractorOptions.TextFormattingMode およびテキスト抽出操作の他のオプションを設定するために使用されます。 また、入力 PDF ドキュメントを表すデータ (ファイル、ストリーム) を追加する機能を継承しています。

コンストラクタ

TextExtractorOptions(TextFormattingMode)

指定されたテキストフォーマットモードのために Documentize.TextExtractorOptions オブジェクトの新しいインスタンスを初期化します。

public TextExtractorOptions(TextExtractorOptions.TextFormattingMode formattingMode)

パラメーター

TextExtractorOptions()

‘Raw’ (デフォルト) テキストフォーマットモードで Documentize.TextExtractorOptions オブジェクトの新しいインスタンスを初期化します。

public TextExtractorOptions()

プロパティ

FormattingMode

フォーマットモードを取得します。

public TextExtractorOptions.TextFormattingMode FormattingMode { get; }

プロパティ値

TextExtractorOptions.TextFormattingMode

OperationName

操作の名前を返します。

public override string OperationName { get; }

プロパティ値

string

名前空間: Documentize アセンブリ: Documentize.dll

クラス TiffConverter

情報

Documentize.TiffConverter プラグインを表します。PDF ドキュメントを TIFF 形式に変換するために使用されます。

public sealed class TiffConverter  

継承

object
TiffConverter

継承されたメンバー

この例は、PDF ドキュメントを TIFF 形式に変換する方法を示します。

// TiffConverter を作成  
var plugin = new TiffConverter();  
// 指示を設定するために PdfToTiffOptions オブジェクトを作成  
var opt = new PdfToTiffOptions();  
// 入力ファイルパスを追加  
opt.AddInput(new FileDataSource(inputPath));  
// 出力ファイルパスを設定  
opt.AddOutput(new DirectoryDataSource(outputPath));  
// 処理を実行  
plugin.Process(opt);  

コンストラクター

TiffConverter()

public TiffConverter()  

メソッド

Process(PdfToTiffOptions)

指定されたパラメーターで Documentize.TiffConverter 処理を開始します。

public ResultContainer Process(PdfToTiffOptions options)  

パラメーター

  • options PdfToTiffOptions: Documentize.TiffConverter の指示を含むオプションオブジェクト。

返す

ResultContainer : 操作の結果を含む ResultContainer オブジェクト。

名前空間: Documentize
アセンブリ: Documentize.dll

クラス XlsConverter

情報

Documentize.XlsConverter プラグインを表します。PDF ドキュメントを XLSX/XLS フォーマットに変換するために使用されます。

public sealed class XlsConverter  

継承

object
XlsConverter

継承メンバー

この例は、PDF を XLSX ドキュメントに変換する方法を示しています。

// XlsConverter を作成  
var plugin = new XlsConverter();  
// PdfToXlsOptions を作成  
var opt = new PdfToXlsOptions();  
// 入力ファイルのパスを追加  
opt.AddInput(new FileDataSource(inputPath));  
// 出力ファイルのパスを設定  
opt.AddOutput(new FileDataSource(outputPath));  
// プロセスを実行  
plugin.Process(opt);  

コンストラクタ

XlsConverter()

public XlsConverter()  

メソッド

Process(PdfToXlsOptions)

指定されたパラメーターで Documentize.XlsConverter の処理を開始します。

public ResultContainer Process(PdfToXlsOptions options)  

パラメーター

  • options PdfToXlsOptions: 操作のための指示を含むオプションオブジェクトです。

戻り値

ResultContainer: 操作の結果を含む Documentize.ResultContainer オブジェクトです。

名前空間: Documentize
アセンブリ: Documentize.dll

クラス テーブルオプション

情報

Documentize.TableGenerator プラグインによるドキュメントへのテーブル追加オプションを表します。

public sealed class TableOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsTableOptions

実装

継承メンバー

コンストラクター

TableOptions()

デフォルトオプションで Documentize.TableOptions オブジェクトの新しいインスタンスを初期化します。

public TableOptions()

メソッド

AddTable()

ドキュメントにテーブルを追加します。

public TableBuilder AddTable()

戻り値

TableBuilder : Documentize.TableBuilder の新しいインスタンス。

Create()

Documentize.TableOptions のインスタンスを作成します。

public static TableOptions Create()

戻り値

TableOptions : Documentize.TableOptions の新しいインスタンス。

InsertPageAfter(int)

指定したページの後にページを挿入します。

public TableOptions InsertPageAfter(int page)

パラメーター

  • page int: テーブルを挿入するページ番号。

戻り値

TableOptions : 現在の Documentize.TableOptions のインスタンス。

InsertPageBefore(int)

指定したページの前にページを挿入します。

public TableOptions InsertPageBefore(int page)

パラメーター

  • page int: テーブルを挿入するページ番号。

戻り値

TableOptions : 現在の Documentize.TableOptions のインスタンス。

名前空間: Documentize アセンブリ: Documentize.dll

クラス テーブルジェネレーター

情報

Documentize.TableGenerator プラグインを表します。PDF ドキュメントにテーブルを追加するために使用されます。

public sealed class TableGenerator  

継承

object
TableGenerator

継承メンバー

この例は、PDF ファイルにテーブルを追加する方法を示しています。

// テーブルジェネレーターを作成  
var plugin = new TableGenerator();  
// 指示を設定するために TableOptions オブジェクトを作成  
TableOptions opt = new TableOptions().InsertPageBefore(1)  
   .AddTable()  
        .AddRow()  
            .AddCell().AddParagraph("名前")  
            .AddCell().AddParagraph("年齢")  
        .AddRow()  
            .AddCell().AddParagraph("ボブ")  
            .AddCell().AddParagraph("12")  
        .AddRow()  
            .AddCell().AddParagraph("サム")  
            .AddCell().AddParagraph("20")  
        .AddRow()  
            .AddCell().AddParagraph("サンディ")  
            .AddCell().AddParagraph("26")  
        .AddRow()  
            .AddCell().AddParagraph("トム")  
            .AddCell().AddParagraph("12")  
        .AddRow()  
            .AddCell().AddParagraph("ジム")  
            .AddCell().AddParagraph("27");  
// 入力ファイルパスを追加  
opt.AddInput(new FileDataSource(inputPath1));  
// 出力ファイルパスを設定  
opt.AddOutput(new FileDataSource(outputPath));  
// 処理を実行  
plugin.Process(opt);  

コンストラクタ

TableGenerator()

public TableGenerator()  

メソッド

Process(TableOptions)

指定されたパラメータで Documentize.TableGenerator 処理を開始します。

public ResultContainer Process(TableOptions options)  

パラメータ

  • options TableOptions: Documentize.TableGenerator に対する指示を含むオプションオブジェクト。

戻り値

ResultContainer : 操作の結果を含む ResultContainer オブジェクト。

名前空間: Documentize
アセンブリ: Documentize.dll

クラス テーブルビルダー

情報

クラスはPDFページのテーブルのビルダーを表します。

public class TableBuilder

継承

objectTableBuilder

派生

継承メンバー

メソッド

AddRow()

テーブルに新しい行を追加します。

public virtual TableRowBuilder AddRow()

戻り値

TableRowBuilder : 現在の Documentize.TableRowBuilder のインスタンス。

AddTable()

ドキュメントに新しいテーブルを追加します。

public TableBuilder AddTable()

戻り値

TableBuilder : 現在の Documentize.TableBuilder のインスタンス。

InsertPageAfter(int)

指定したページの後にページを挿入します。

public TableOptions InsertPageAfter(int page)

パラメータ

  • page int: テーブルを挿入するページ番号。

戻り値

TableOptions : 現在の Documentize.TableOptions のインスタンス。

InsertPageBefore(int)

指定したページの前にページを挿入します。

public TableOptions InsertPageBefore(int page)

パラメータ

  • page int: テーブルを挿入するページ番号。

戻り値

TableOptions : 現在の Documentize.TableOptions のインスタンス。

演算子

implicit operator TableOptions(TableBuilder)

ビルダー Documentize.TableBuilder をオプション Documentize.TableOptions に変換します。

public static implicit operator TableOptions(TableBuilder builder)

パラメータ

  • builder TableBuilder: 現在の Documentize.TableBuilder のインスタンス。

戻り値

TableOptions : PdfGeneratorTableOptions への変換の結果です。

名前空間: Documentize アセンブリ: Documentize.dll

クラス ページサイズ

情報

PDF文書のページサイズを表すクラスです。

public class PageSize

継承

objectPageSize

派生

継承されたメンバー

コンストラクタ

PageSize()

Documentize.PageSizeのコンストラクタ。デフォルトはA4サイズです。

public PageSize()

PageSize(double, double)

Documentize.PageSizeのコンストラクタ。

public PageSize(double width, double height)

パラメーター

  • width double: ページの幅。
  • height double: ページの高さ。

プロパティ

A0

A0サイズ (1189x840 mm)。

public static PageSize A0 { get; }

プロパティ値

PageSize

A1

A1サイズ (840x594 mm)。

public static PageSize A1 { get; }

プロパティ値

PageSize

A2

A2サイズ (594x420 mm)。

public static PageSize A2 { get; }

プロパティ値

PageSize

A3

A3サイズ (420x297 mm)。

public static PageSize A3 { get; }

プロパティ値

PageSize

A4

A4サイズ (297x210 mm)。

public static PageSize A4 { get; }

プロパティ値

PageSize

A5

A5サイズ (210x148 mm)。

public static PageSize A5 { get; }

プロパティ値

PageSize

A6

A6サイズ (148x105 mm)。

public static PageSize A6 { get; }

プロパティ値

PageSize

B5

B5サイズ (250x176 mm)。

public static PageSize B5 { get; }

プロパティ値

PageSize

Height

ページの高さを取得または設定します。

public double Height { get; set; }

プロパティ値

double

IsLandscape

ページの向きを取得します。横向きの場合はtrueを、縦向きの場合はfalseを返します。

public bool IsLandscape { get; }

プロパティ値

bool

P11x17

11x17インチ形式。

public static PageSize P11x17 { get; }

プロパティ値

PageSize

PageLedger

レジャーサイズ (432x279 mm)。

public static PageSize PageLedger { get; }

プロパティ値

PageSize

リーガルサイズ (356x216 mm)。

public static PageSize PageLegal { get; }

プロパティ値

PageSize

PageLetter

レターサイズ (279x216 mm)。

public static PageSize PageLetter { get; }

プロパティ値

PageSize

Width

ページの幅を取得または設定します。

public double Width { get; set; }

プロパティ値

double

namespace: Documentize アセンブリ: Documentize.dll

クラス ページ情報

情報

ページ情報を表します。

public class PageInfo : PageSize

継承

objectPageSizePageInfo

継承されたメンバー

コンストラクター

PageInfo()

Documentize.PageInfo のコンストラクター。

public PageInfo()

PageInfo(double, double)

Documentize.PageInfo のコンストラクター。

public PageInfo(double width, double height)

パラメーター

  • width double: ページの幅。
  • height double: ページの高さ。

プロパティ

MarginBottom

下部余白を示す値を取得または設定します。

public double MarginBottom { get; set; }

プロパティ値

double

MarginLeft

左余白を示す値を取得または設定します。

public double MarginLeft { get; set; }

プロパティ値

double

MarginRight

右余白を示す値を取得または設定します。

public double MarginRight { get; set; }

プロパティ値

double

MarginTop

上部余白を示す値を取得または設定します。

public double MarginTop { get; set; }

プロパティ値

double

名前空間: Documentize アセンブリ: Documentize.dll

クラス オプティマイザー

情報

Documentize.Optimizer プラグインを表します。

public sealed class Optimizer

継承

objectOptimizer

継承メンバー

この例は PDF ドキュメントを最適化する方法を示しています。

// Optimizer を作成
var plugin = new Optimizer();
// 指示を設定するための OptimizeOptions オブジェクトを作成
var opt = new OptimizeOptions();
// 入力ファイルパスを追加
opt.AddInput(new FileDataSource(inputPath));
// 出力ファイルパスを設定
opt.AddOutput(new FileDataSource(outputPath));
// 処理を実行
plugin.Process(opt);

コンストラクター

Optimizer()

public Optimizer()

メソッド

Process(OptimizeOptions)

指定されたパラメーターで Documentize.Optimizer 処理を開始します。

public ResultContainer Process(OptimizeOptions options)

パラメーター

  • options OptimizeOptions: Documentize.OptimizeOptions に対する指示を含むオプションオブジェクト。

戻り値

ResultContainer : 操作の結果を含む ResultContainer オブジェクト。

Process(RotateOptions)

指定されたパラメーターで Documentize.Optimizer 処理を開始します。

public ResultContainer Process(RotateOptions options)

パラメーター

  • options RotateOptions: Documentize.RotateOptions に対する指示を含むオプションオブジェクト。

戻り値

ResultContainer : 操作の結果を含む ResultContainer オブジェクト。

Process(ResizeOptions)

指定されたパラメーターで Documentize.Optimizer 処理を開始します。

public ResultContainer Process(ResizeOptions options)

パラメーター

  • options ResizeOptions: Documentize.ResizeOptions に対する指示を含むオプションオブジェクト。

戻り値

ResultContainer : 操作の結果を含む ResultContainer オブジェクト。

Process(CompressOptions)

指定されたパラメーターで Documentize.Optimizer 処理を開始します。

public ResultContainer Process(CompressOptions options)

パラメーター

  • options CompressOptions: Documentize.CompressOptions に対する指示を含むオプションオブジェクト。

戻り値

ResultContainer : 操作の結果を含む ResultContainer オブジェクト。

名前空間: Documentize アセンブリ: Documentize.dll

クラス セキュリティ

情報

Documentize.Security プラグインを表します。

public sealed class Security  

継承

object
Security

継承したメンバー

この例は、PDF ドキュメントを暗号化する方法を示しています。

// Security を作成  
var plugin = new Security();  
// 指示を設定するために EncryptionOptions オブジェクトを作成  
var opt = new EncryptionOptions("123456", "qwerty");  
// 入力ファイルパスを追加  
opt.AddInput(new FileDataSource(inputPath));  
// 出力ファイルパスを設定  
opt.AddOutput(new FileDataSource(outputPath));  
// 処理を実行  
plugin.Process(opt);  

この例は、PDF ドキュメントを復号化する方法を示しています。

// Security を作成  
var plugin = new Security();  
// 指示を設定するために DecryptionOptions オブジェクトを作成  
var opt = new DecryptionOptions("123456"));  
// 入力ファイルパスを追加  
opt.AddInput(new FileDataSource(inputPath));  
// 出力ファイルパスを設定  
opt.AddOutput(new FileDataSource(outputPath));  
// 処理を実行  
plugin.Process(opt);  

コンストラクター

Security()

public Security()  

メソッド

Process(IPluginOptions)

指定されたパラメーターで Documentize.Security 処理を開始します。

public ResultContainer Process(IPluginOptions options)  

パラメーター

  • options IPluginOptions: Documentize.Security のための指示を含むオプションオブジェクトです。

戻り値

ResultContainer : 操作の結果を含む ResultContainer オブジェクトです。

例外

InvalidOperationException

名前空間: Documentize
アセンブリ: Documentize.dll

クラス タイムスタンプ

情報

Documentize.Timestamp プラグインを表します。

public class Timestamp

継承

objectTimestamp

継承されたメンバー

この例では、ドキュメントにタイムスタンプを追加する方法を示します。

// タイムスタンプを作成
var plugin = new Timestamp();
// 指示を設定するための AddTimestampOptions オブジェクトを作成
var opt = new AddTimestampOptions("path_to_pfx", "password_for_pfx", "timestamp_server_url");
// 入力ファイルパスを追加
opt.AddInput(new FileDataSource("path_to_pdf"));
// 出力ファイルパスを設定
opt.AddOutput(new FileDataSource("path_to_result_pdf"));
// 処理を実行
plugin.Process(opt);

コンストラクター

Timestamp()

public Timestamp()

メソッド

Process(AddTimestampOptions)

指定されたパラメーターで Documentize.Timestamp 処理を開始します。

public ResultContainer Process(AddTimestampOptions options)

パラメーター

  • options AddTimestampOptions: Documentize.AddTimestampOptions のための指示を含むオプションオブジェクトです。

戻り値

ResultContainer : 操作の結果を含む ResultContainer オブジェクトです。

名前空間: Documentize アセンブリ: Documentize.dll

クラス ディレクトリデータソース

情報

プラグインのロードおよび保存操作のためのディレクトリデータを表します。

public sealed class DirectoryDataSource : IDataSource

継承

objectDirectoryDataSource

実装

継承メンバー

コンストラクター

DirectoryDataSource(string)

指定されたパスを使用して新しいディレクトリデータを初期化します。

public DirectoryDataSource(string path)

パラメーター

  • path string: ディレクトリへのパスを表す文字列。

プロパティ

DataType

データソースの種類。

public DataType DataType { get; }

プロパティ値

DataType

Path

現在のデータのディレクトリへのパスを取得します。

public string Path { get; }

プロパティ値

string

名前空間: Documentize アセンブリ: Documentize.dll

クラス テキストエクストラクター

情報

Documentize.TextExtractor プラグインを表します。PDF ドキュメントからテキストを抽出するために使用されます。

public class TextExtractor : PdfExtractor, IDisposable

継承

objectPdfExtractorTextExtractor

実装

継承メンバー

この例は、PDF ドキュメントのテキストコンテンツを抽出する方法を示しています。

// create TextExtractor object to extract text in PDF contents
using (var plugin = new TextExtractor())
{
    // create TextExtractorOptions
    var opt = new TextExtractorOptions();

    // add input file path
    opt.AddInput(new FileDataSource(inputPath));

    // perform extraction process
    var resultContainer = plugin.Process(opt);

    // get the extracted text from the ResultContainer object
    var textExtracted = resultContainer.ResultCollection[0].ToString();
}

コンストラクター

TextExtractor()

public TextExtractor()

Namespace: Documentize Assembly: Documentize.dll

クラス 回転オプション

情報

Documentize.Optimizerプラグインの回転オプションを表します。

public sealed class RotateOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsRotateOptions

実装

継承されたメンバー

コンストラクタ

RotateOptions()

デフォルトオプションでDocumentize.RotateOptionsオブジェクトの新しいインスタンスを初期化します。

public RotateOptions()

プロパティ

Rotation

新しいページの回転を取得または設定します。

public Rotation Rotation { get; set; }

プロパティ値

Rotation

名前空間: Documentize アセンブリ: Documentize.dll

クラスシグネチャ

情報

Documentize.Signatureプラグインを表します。

public sealed class Signature  

継承

object
Signature

継承したメンバー

この例は、PDFドキュメントに署名する方法を示しています。

// Signatureを作成  
var plugin = new Signature();  
// 指示を設定するためのSignOptionsオブジェクトを作成  
var opt = new SignOptions(inputPfx, inputPfxPassword);  
// 入力ファイルパスを追加  
opt.AddInput(new FileDataSource(inputPath));  
// 出力ファイルパスを設定  
opt.AddOutput(new FileDataSource(outputPath));  
// プロセスを実行  
plugin.Process(opt);  

コンストラクター

Signature()

public Signature()  

メソッド

Process(IPluginOptions)

指定されたパラメータでDocumentize.Signature処理を開始します。

public ResultContainer Process(IPluginOptions options)  

パラメーター

  • options IPluginOptions: Documentize.Signatureの指示を含むオプションオブジェクトです。

戻り値

ResultContainer : 操作の結果を含むResultContainerオブジェクトです。

例外

InvalidOperationException

名前空間: Documentize
アセンブリ: Documentize.dll

クラスセパレーター

情報

Documentize.Splitterプラグインを表します。文書を個別のページに分割するために使用されます。

public class Splitter

継承

objectSplitter

継承されたメンバー

この例では、PDF文書を分割する方法を示します。

// Splitterを作成
var plugin = new Splitter();
// 指示を設定するためのSplitOptionsオブジェクトを作成
var opt = new SplitOptions();
// 入力ファイルパスを追加
opt.AddInput(new FileDataSource(inputPath));
// 出力ファイルパスを設定
opt.AddOutput(new FileDataSource(outputPath1));
opt.AddOutput(new FileDataSource(outputPath2));
// 処理を実行
plugin.Process(opt);

コンストラクター

Splitter()

public Splitter()

メソッド

Process(IPluginOptions)

指定されたパラメータでDocumentize.Splitterの処理を開始します。

public ResultContainer Process(IPluginOptions options)

パラメーター

  • options IPluginOptions: Documentize.Splitterの指示を含むオプションオブジェクト。

返り値

ResultContainer : 操作の結果を含むResultContainerオブジェクト。

例外

InvalidOperationException

名前空間: Documentize アセンブリ: Documentize.dll

クラスのマージ

情報

Documentize.Mergerプラグインを表します。複数のPDFドキュメントを1つのPDFにマージするために使用されます。

public sealed class Merger

継承

objectMerger

継承メンバー

この例は、2つのPDFドキュメントをマージする方法を示しています。

// create Merger
var plugin = new Merger();
// create MergeOptions object to set instructions
var opt = new MergeOptions();
// add input file paths
opt.AddInput(new FileDataSource(inputPath1));
opt.AddInput(new FileDataSource(inputPath2));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(opt);

コンストラクタ

Merger()

public Merger()

メソッド

Process(MergeOptions)

指定されたパラメータでDocumentize.Mergerの処理を開始します。

public ResultContainer Process(MergeOptions options)

パラメータ

  • options MergeOptions: 操作の指示を含むオプションオブジェクトです。

戻り値

ResultContainer : 操作の結果を含むDocumentize.ResultContainerオブジェクトです。

Namespace: Documentize Assembly: Documentize.dll

クラスメッセージ

情報

モデルによって生成されたチャット完了メッセージ。

public class Message  

継承

object
Message

継承されたメンバー

コンストラクタ

Message()

public Message()  

プロパティ

Content

メッセージの内容。

[JsonProperty("content")]  
public string Content { get; set; }  

プロパティ値

string

Role

このメッセージの著者の役割を設定または取得します。

[JsonProperty("role")]  
[JsonConverter(typeof(StringEnumConverter), new object[] { true })]  
public Role Role { get; set; }  

プロパティ値

Role

名前空間: Documentize
アセンブリ: Documentize.dll

クラスライセンス

情報

ライセンスを設定する方法を提供します。

public static class License

継承

objectLicense

継承されたメンバー

ライセンスをアクティブにする方法を示します。

// ライセンスを設定
License.Set("PathToLicense.lic");

メソッド

Set(string)

コンポーネントにライセンスを付与します。

public static void Set(string licenseName)

パラメータ

  • licenseName string: フルファイル名またはショートファイル名が使用できます。空の文字列を使用すると評価モードに切り替わります。

名前空間: Documentize アセンブリ: Documentize.dll

クラス矩形

情報

クラスは矩形を表します。

public class Rectangle

継承

objectRectangle

継承メンバー

コンストラクタ

Rectangle(double, double, double, double)

矩形のコンストラクタです。

public Rectangle(double llx, double lly, double urx, double ury)

パラメータ

  • llx double: 左下隅のX座標。
  • lly double: 左下隅のY座標。
  • urx double: 右上隅のX座標。
  • ury double: 右上隅のY座標。

名前空間: Documentize アセンブリ: Documentize.dll

クラス情報

情報

クラスは現在の製品ビルドに関する情報を提供します。

public static class Info

継承

objectInfo

継承されたメンバー

フィールド

  • AssemblyVersion アセンブリバージョン。

フィールド値

string

製品

製品名。

public const string Product = "Documentize"

フィールド値

string

名前空間: Documentize アセンブリ: Documentize.dll

列挙データ型

情報

プラグイン処理のためのデータの可能なタイプを表します。

public enum DataType

フィールド

  • Directory = 2: データ型は、パスによって表されるディレクトリです。
  • File = 0: データ型は、パスによって表されるファイルです。
  • Stream = 1: データ型は、ストリームです。

名前空間: Documentize アセンブリ: Documentize.dll

列挙型の回転

情報

可能な回転値の列挙。

public enum Rotation  

フィールド

  • None = 0: 非回転。
  • On180 = 2: 180度回転。
  • On270 = 3: 270度時計回りに回転。
  • On360 = 4: 360度時計回りに回転。
  • On90 = 1: 90度時計回りに回転。

Namespace: Documentize
Assembly: Documentize.dll

列挙型の役割

情報

メッセージの著者の役割。

public enum Role

フィールド

  • Assistant = 2
  • System = 1
  • User = 0

名前空間: Documentize アセンブリ: Documentize.dll

 日本語