Documentize Namespace

クラス

クラス名説明
AddTimestampOptionsDocumentize.Timestamp プラグインのタイムスタンプオプションを表します。
ChatCompletion入力内容に基づきモデルが返すチャット完了レスポンスを表します。
ChatGptConsts定数を格納するクラスです。
ChatGptRequestOptionsDocumentize.PdfManager プラグインのオプションを表します。
Choiceチャット完了の選択肢です。
CompressOptionsDocumentize.PdfManager プラグインの圧縮オプションを表します。
DecryptOptionsDocumentize.PdfSecurity プラグインの復号オプションを表します。
DirectoryData読み込み・保存操作のためのディレクトリデータを表します。
DocConverterDocumentize.DocConverter プラグインを表します。PDF ドキュメントを DOC/DOCX 形式に変換します。
EncryptOptionsDocumentize.PdfSecurity プラグインの暗号化オプションを表します。
ExtractFormDataToDsvOptionsDocumentize.PdfForm および Documentize.PdfExtractor プラグインでフィールドの値をエクスポートするオプションを表します。
ExtractImagesOptionsDocumentize.PdfExtractor プラグインの画像抽出オプションを表します。
ExtractPropertiesOptionsDocumentize.PdfExtractor プラグインの PDF プロパティ抽出オプションを表します。
ExtractTextOptionsDocumentize.PdfExtractor プラグインのテキスト抽出オプションを表します。
FileData読み込み・保存操作のためのファイルデータを表します。
FileResultファイルへのパス文字列としての操作結果を表します。
FlattenFieldsOptionsDocumentize.PdfForm プラグインでドキュメントのフィールドをフラット化するオプションを表します。
FormExporterDocumentize.FormExporter プラグインを表します。PDF ドキュメントのフォーム値を DSV または CSV ファイルにエクスポートします。
FormFlattenerDocumentize.FormFlattener プラグインを表します。PDF ドキュメントのフィールドをフラット化します。
GetFieldNamesOptionsDocumentize.PdfForm プラグインでドキュメントのフィールド名を取得するオプションを表します。
HtmlConverterDocumentize.HtmlConverter プラグインを表します。PDF を HTML に、HTML を PDF に変換します。
HtmlToPdfOptionsDocumentize.PdfConverter プラグインの HTML から PDF への変換オプションを表します。
ImageExtractorDocumentize.ImageExtractor プラグインを表します。PDF から画像を抽出します。
Info現在の製品ビルドに関する情報を提供するクラスです。
JpegConverterDocumentize.JpegConverter プラグインを表します。PDF を JPEG 形式に変換します。
Licenseライセンス設定用のメソッドを提供します。
MergeOptionsDocumentize.PdfManager プラグインの結合オプションを表します。
MergerDocumentize.Merger プラグインを表します。複数の PDF を単一の PDF に結合します。
Messageモデルが生成したチャット完了メッセージです。
ObjectResult文字列としての操作結果を表します。
OptimizeOptionsDocumentize.PdfManager プラグインの最適化オプションを表します。
OptimizerDocumentize.Optimizer プラグインを表します。PDF の最適化、回転、リサイズ、圧縮を行います。
OptionsWithInput1 つの入力データを持つ操作の基本オプションを表します。
PageInfoページ情報を表します。
PageSizePDF ドキュメントのページサイズを表すクラスです。
PdfAConverterPDF/A 形式への変換および PDF/A 準拠性の検証を行うプラグインです。
PdfAOptionsBaseDocumentize.PdfAConverter プラグインのオプション用基本クラスです。PDF/A 変換と検証プロセスの設定プロパティやメソッドを提供します。
PdfAValidateOptionsDocumentize.PdfConverter プラグインで PDF/A の準拠性を検証するオプションを表します。
PdfAValidationResultPDF/A 検証プロセスの結果を表します。
PdfChatGptPdfChatGpt プラグインを表します。
PdfConverterDocumentize.PdfConverter プラグインを表します。PDF を DOCX/DOC、XLSX/XLS/CSV/XLSM/ODS、HTML、JPEG、PNG、TIFF、PDF/A などの形式に変換し、PDF/A 検証や HTML から PDF への変換も可能です。
PdfExtractorDocumentize.PdfExtractor プラグインを表します。PDF からテキスト、画像、フォームデータ、プロパティ(メタデータ)を抽出します。
PdfFormDocumentize.PdfForm プラグインを表します。フィールドのフラット化、フォームデータの抽出、フィールド名取得が可能です。
PdfManagerDocumentize.PdfManager プラグインを表します。PDF の結合、分割、最適化、回転、リサイズ、圧縮、テーブル追加、目次追加が可能です。複数 PDF を単一に結合したり、ページ単位で分割したりできます。
PdfPropertiesPDF ドキュメントのプロパティとメタ情報を表します。
PdfSecurityDocumentize.PdfSecurity プラグインを表します。PDF の暗号化、復号、署名が可能です。
PdfToDocOptionsDocumentize.PdfConverter プラグインの PDF から DOC 変換オプションを表します。
PdfToHtmlOptionsDocumentize.PdfConverter プラグインの PDF から HTML 変換オプションを表します。
PdfToJpegOptionsDocumentize.PdfConverter プラグインの PDF から JPEG 変換オプションを表します。
PdfToPdfAOptionsDocumentize.PdfConverter プラグインで PDF を PDF/A 形式に変換するオプションを表します。
PdfToPngOptionsDocumentize.PdfConverter プラグインの PDF から PNG 変換オプションを表します。
PdfToTiffOptionsDocumentize.PdfConverter プラグインの PDF から TIFF 変換オプションを表します。
PdfToXlsOptionsDocumentize.PdfConverter プラグインの PDF から XLS/XLSX 変換オプションを表します。
PluginBaseOptionsプラグインの基本オプションを表します。
PngConverterDocumentize.PngConverter プラグインを表します。PDF を PNG 形式に変換します。
Rectangle四角形を表すクラスです。
RemoveFieldsOptionsDocumentize.PdfForm プラグインでフィールドを削除するオプションを表します。
ResizeOptionsDocumentize.PdfManager プラグインのリサイズオプションを表します。
ResultContainerプラグイン処理結果のコレクションを保持するコンテナを表します。
RotateOptionsDocumentize.PdfManager プラグインの回転オプションを表します。
SecurityDocumentize.Security プラグインを表します。PDF の暗号化と復号が可能です。
SignOptionsDocumentize.PdfSecurity プラグインの署名オプションを表します。
SignatureDocumentize.Signature プラグインを表します。PDF に署名を付与します。
SplitOptionsDocumentize.PdfManager プラグインの分割オプションを表します。
SplitterDocumentize.Splitter プラグインを表します。PDF をページ単位に分割します。
StreamData読み込み・保存操作のためのストリームデータを表します。
StreamResultストリームとしての操作結果を表します。
StringResult文字列としての操作結果を表します。
TableBuilderPDF ページ上のテーブルを構築するビルダークラスです。
TableCellBuilderテーブルセルを構築するビルダークラスです。
TableGeneratorDocumentize.TableGenerator プラグインを表します。PDF にテーブルを追加します。
TableOptionsDocumentize.PdfManager プラグインでテーブルを追加する際のオプションを表します。
TableRowBuilderテーブル行を構築するビルダークラスです。
TextExtractorDocumentize.TextExtractor プラグインを表します。PDF からテキストを抽出します。
TiffConverterDocumentize.TiffConverter プラグインを表します。PDF を TIFF 形式に変換します。
TimestampDocumentize.Timestamp プラグインを表します。ドキュメントにタイムスタンプを付与します。
TimestampOptionsTocGenerator Documentize.TocGenerator プラグインを表します。PDF に目次を追加します。
TocHeadingDocumentize.PdfManager プラグインで目次の見出しやタイトルに使用するオプションを表します。
TocOptionsDocumentize.PdfManager プラグインで目次を追加するオプションを表します。
Usage完了リクエストの使用統計情報です。
XlsConverterDocumentize.XlsConverter プラグインを表します。PDF を XLSX/XLS/CSV/XLSM/ODS 形式に変換します。

インターフェース

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

列挙型

列挙型名説明
ConvertErrorAction変換エラー時のアクションを表すクラスです。
ConvertSoftMaskActionソフトマスク付き画像の変換時のアクションを表します。
DataTypeプラグイン処理で使用可能なデータ型を表します。
DocConversionMode出力ドキュメントの変換モードを定義します。
PdfToXlsOptions.ExcelFormatxls/xlsx/xml/csv のファイル形式を指定できます。デフォルトは XLSX です。
HtmlMediaTypeレンダリング時に使用される可能なメディアタイプを指定します。
HtmlPageLayoutOption他のオプションと組み合わせてページサイズやレイアウトを決定するフラグを指定します。
PdfAStandardVersionPDF ドキュメントの PDF/A 標準バージョンを指定します。
Roleメッセージ送信者の役割を表します。
Rotation可能な回転値の列挙です。
PdfToHtmlOptions.SaveDataTypeHTML ファイルの出力タイプを定義します。
TextFormattingModePDF をテキストに変換する際に使用できるモードを定義します。Documentize.ExtractTextOptions クラスを参照してください。
TiffColorDepthDocumentize.PdfToTiffOptions のカラーデプスを指定します。
TiffCompressionDocumentize.PdfToTiffOptions の圧縮タイプを指定します。

Documentize Namespaceのサブセクション

Class AddTimestampOptions

情報

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

[Obsolete("The class will be deleted soon. Please use SignOptions class.")]
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

Class ChatCompletion

情報

提供された入力に基づいてモデルから返されるチャット完了レスポンスを表します。

public class ChatCompletion

継承

objectChatCompletion

継承されたメンバー

コンストラクタ

ChatCompletion()

public ChatCompletion()

プロパティ

Choices

チャット完了の選択肢のリスト。n が 1 より大きい場合は複数になることがあります。

[JsonProperty("choices")]
public List<choice> Choices { get; set; }

プロパティの値

List<Choice>

Created

チャット完了が作成された時刻の Unix タイムスタンプ(秒単位)。

[JsonProperty("created")]
public long Created { get; set; }

プロパティの値

long

Id

チャット完了の一意の識別子。

[JsonProperty("id")]
public string Id { get; set; }

プロパティの値

string

Model

チャット完了に使用されるモデル。

[JsonProperty("model")]
public string Model { get; set; }

プロパティの値

string

Object

オブジェクトの種類であり、常に chat.completion です。

[JsonProperty("object")]
public string Object { get; set; }

プロパティの値

string

SystemFingerprint

このフィンガープリントは、モデルが実行されるバックエンド設定を表します。

[JsonProperty("system_fingerprint")]
public string SystemFingerprint { get; set; }

プロパティの値

string

Usage

完了リクエストの使用統計。

[JsonProperty("usage")]
public Usage Usage { get; set; }

プロパティの値

Usage

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

Class ChatGptConsts

情報

このクラスは定数のストレージを表します。

public static class ChatGptConsts

継承

objectChatGptConsts

継承されたメンバー

フィールド

  • ApiUrl

フィールドの値

string

ModelName

public static string ModelName

フィールドの値

string

SystemRole

public static string SystemRole

フィールドの値

string

SystemRoleDescription

public static string SystemRoleDescription

フィールドの値

string

UserRole

public static string UserRole

フィールドの値

string

Namespace: Documentize Assembly: Documentize.dll

Class ChatGptRequestOptions

情報

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

public class ChatGptRequestOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsChatGptRequestOptions

実装

継承されたメンバー

コンストラクター

ChatGptRequestOptions()

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

public ChatGptRequestOptions()

ChatGptRequestOptions(string, string, string, string)

Documentize.ChatGptRequestOptions オブジェクトの新しいインスタンスを、指定されたオプションで初期化します。

public ChatGptRequestOptions(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

CancellationToken

キャンセルトークン。

public CancellationToken CancellationToken { get; set; }

プロパティ値

CancellationToken

MaxTokens

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

public int? MaxTokens { get; set; }

プロパティ値

int?

Messages

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

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

プロパティ値

List<Message>

Remarks

オプションに複数のメッセージを追加する場合、メッセージコレクション内の順序は次のとおりです:

  • 最初のメッセージ(存在する場合)は options.Query から取得され、その前に内容が “You are a helpful assistant.” でロールが “system” のメッセージが付加されます。
  • 次に(存在する場合)options.Messages コレクションからのメッセージが追加されます。
  • ファイルソースからのメッセージ(存在する場合)が最後に追加され、各ドキュメントにつき 1 つの “user” ロールのメッセージオブジェクトが作成されます。 メッセージが 1 つも提供されない場合は ArgumentException がスローされます。

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

Class CompressOptions

情報

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

public sealed class CompressOptions : PluginBaseOptions, IPluginOptions

継承

object
PluginBaseOptions
CompressOptions

実装

継承されたメンバー

コンストラクター

CompressOptions()

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

public CompressOptions()

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

Class 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

Class DecryptOptions

情報

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

public class DecryptOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsDecryptOptions

Implements

Inherited Members

Constructors

DecryptOptions(string)

Documentize.DecryptOptions オブジェクトをデフォルトオプションで新しく初期化します。

public DecryptOptions(string ownerPassword)

Parameters

  • ownerPassword string: 所有者パスワード。

Properties

OwnerPassword

所有者パスワード。

public string OwnerPassword { get; set; }

Property Value

string

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

Class DirectoryData

情報

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

public sealed class DirectoryData : IData

継承

objectDirectoryData

実装

継承されたメンバー

コンストラクター

DirectoryData(string)

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

public DirectoryData(string path)

パラメーター

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

プロパティ

DataType

データ ソースの種類。

public DataType DataType { get; }

プロパティの値

DataType

Path

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

public string Path { get; }

プロパティの値

string

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

Class DirectoryDataSource

情報

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

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

Class DocConverter

情報

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

[Obsolete("このクラスはまもなく削除されます。PdfConverter クラスを使用してください。")]
public static class DocConverter

継承

objectDocConverter

継承されたメンバー

メソッド

Process(PdfToDocOptions)

PDF ドキュメントを DOC/DOCX 形式に変換します。

public static ResultContainer Process(PdfToDocOptions options)

パラメーター

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

戻り値

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

例外

ArgumentException

オプションが設定されていない場合。

Namespace: Documentize Assembly: Documentize.dll

Class EncryptionOptions

情報

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

public class EncryptionOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsEncryptionOptions

Implements

Inherited Members

Constructors

EncryptionOptions(string, string)

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

public EncryptionOptions(string ownerPassword, string userPassword)

Parameters

  • ownerPassword string: 所有者のパスワード。
  • userPassword string: ユーザーのパスワード。

Properties

OwnerPassword

所有者のパスワード。

public string OwnerPassword { get; set; }

Property Value

string

UserPassword

ユーザーのパスワード。

public string UserPassword { get; set; }

Property Value

string

Namespace: Documentize Assembly: Documentize.dll

Class EncryptOptions

情報

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

public class EncryptOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsEncryptOptions

実装

継承されたメンバー

コンストラクター

EncryptOptions(string, string)

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

public EncryptOptions(string ownerPassword, string userPassword)

パラメーター

  • ownerPassword string: 所有者パスワード。
  • userPassword string: ユーザーパスワード。

プロパティ

OwnerPassword

所有者パスワード。

public string OwnerPassword { get; set; }

プロパティ値

string

UserPassword

ユーザーパスワード。

public string UserPassword { get; set; }

プロパティ値

string

Namespace: Documentize Assembly: Documentize.dll

Class ExtractFormDataToDsvOptions

情報

Documentize.PdfForm と Documentize.PdfExtractor プラグインのフィールドのエクスポート値のオプションを表します。

public sealed class ExtractFormDataToDsvOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsExtractFormDataToDsvOptions

Implements

Inherited Members

Constructors

ExtractFormDataToDsvOptions(char, bool)

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

public ExtractFormDataToDsvOptions(char delimiter = ',', bool addFieldNames = false)

Parameters

  • delimiter char: エクスポートされたデータの値間で使用する区切り文字を指定します。デフォルト値は ‘,’ です。
  • addFieldNames bool: 値の前にフィールド名を追加します。形式: 名前 + 区切り文字 + 値 + 区切り文字。

Properties

AddFieldName

値の前にフィールド名を追加します。形式: 名前 + 区切り文字 + 値 + 区切り文字。

public bool AddFieldName { get; set; }

Property Value

bool

Delimiter

エクスポートされた値に使用される区切り文字です。

public char Delimiter { get; set; }

Property Value

char

Namespace: Documentize Assembly: Documentize.dll

Class ExtractImagesOptions

情報

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

public sealed class ExtractImagesOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsExtractImagesOptions

実装

継承されたメンバー

コンストラクター

ExtractImagesOptions()

Documentize.ExtractImagesOptions オブジェクトをデフォルトオプションで新しく初期化します。

public ExtractImagesOptions()

Namespace: Documentize Assembly: Documentize.dll

Class ExtractPropertiesOptions

情報

Documentize.PdfExtractor プラグイン用の PDF プロパティ抽出オプションを表します。

public sealed class ExtractPropertiesOptions : OptionsWithInput, IHaveInput

継承

objectOptionsWithInputExtractPropertiesOptions

実装

継承されたメンバー

コンストラクター

ExtractPropertiesOptions()

Documentize.ExtractPropertiesOptions オブジェクトをデフォルトオプションで新しく初期化します。

public ExtractPropertiesOptions()

ExtractPropertiesOptions(IData)

指定されたデータで Documentize.ExtractPropertiesOptions オブジェクトを新しく初期化します。

public ExtractPropertiesOptions(IData data)

パラメーター

  • data IData: 入力データ。

ExtractPropertiesOptions(string)

指定されたファイルで Documentize.ExtractPropertiesOptions オブジェクトを新しく初期化します。

public ExtractPropertiesOptions(string file)

パラメーター

  • file string: 入力ファイルパス。

ExtractPropertiesOptions(Stream)

指定されたストリームで Documentize.ExtractPropertiesOptions オブジェクトを新しく初期化します。

public ExtractPropertiesOptions(Stream stream)

パラメーター

  • stream Stream: 入力ストリーム。

プロパティ

Input

入力データを取得または設定します。

public override IData Input { get; set; }

プロパティの値

IData

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

Class ExtractTextOptions

情報

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

public sealed class ExtractTextOptions : OptionsWithInput, IHaveInput

継承

objectOptionsWithInputExtractTextOptions

実装

継承メンバー

コンストラクタ

ExtractTextOptions(TextFormattingMode)

指定されたテキスト書式設定モードに対して Documentize.ExtractTextOptions オブジェクトの新しいインスタンスを初期化します。

public ExtractTextOptions(TextFormattingMode formattingMode = TextFormattingMode.Raw)

パラメーター

ExtractTextOptions(IData, TextFormattingMode)

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

public ExtractTextOptions(IData data, TextFormattingMode formattingMode = TextFormattingMode.Raw)

パラメーター

ExtractTextOptions(string, TextFormattingMode)

指定されたファイルで Documentize.ExtractTextOptions オブジェクトの新しいインスタンスを初期化します。

public ExtractTextOptions(string file, TextFormattingMode formattingMode = TextFormattingMode.Raw)

パラメーター

  • file string: 入力ファイルのパス。
  • formattingMode TextFormattingMode: テキスト書式設定モードの値。

ExtractTextOptions(Stream, TextFormattingMode)

指定されたストリームで Documentize.ExtractTextOptions オブジェクトの新しいインスタンスを初期化します。

public ExtractTextOptions(Stream stream, TextFormattingMode formattingMode = TextFormattingMode.Raw)

パラメーター

プロパティ

FormattingMode

書式設定モードを取得または設定します。

public TextFormattingMode FormattingMode { get; set; }

プロパティ値

TextFormattingMode

Input

入力データを取得または設定します。

public override IData Input { get; set; }

プロパティ値

IData

Namespace: Documentize Assembly: Documentize.dll

Class FileData

情報

ロードおよび保存操作のためのファイル データを表します。

public sealed class FileData : IData

継承

objectFileData

実装

継承されたメンバー

コンストラクター

FileData(string)

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

public FileData(string path)

パラメーター

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

プロパティ

DataType

データ ソースのタイプ。

public DataType DataType { get; }

プロパティの値

DataType

Path

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

public string Path { get; }

プロパティの値

string

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

Class 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

Class FileResult

情報

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

public sealed class FileResult : IOperationResult

継承

objectFileResult

実装

継承メンバー

プロパティ

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

Class FlattenFieldsOptions

情報

Documentize.PdfForm プラグインによるドキュメントのフィールドをフラット化するオプションを表します。

public class FlattenFieldsOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsFlattenFieldsOptions

実装

継承されたメンバー

コンストラクター

FlattenFieldsOptions()

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

public FlattenFieldsOptions()

プロパティ

SkipFields

フラット化しないフィールドのリストです。

public List<string> SkipFields { get; set; }

プロパティの値

List<string>

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

Class FormExporter

情報

Documentize.FormExporter プラグインを表します。PDF ドキュメントのフォーム値を DSV または CSV ファイルにエクスポートするために使用されます。

[Obsolete("The class will be deleted soon. Please use PdfExtractor or PdfForm class.")]
public static class FormExporter

継承

objectFormExporter

継承されたメンバー

メソッド

Process(ExtractFormDataToDsvOptions)

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

public static ResultContainer Process(ExtractFormDataToDsvOptions options)

パラメータ

戻り値

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

例外

ArgumentException

options が設定されていない場合。

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

Class FormExportToDsvOptions

情報

Documentize.FormExporterプラグインのフィールドの値をエクスポートするためのオプションを表します。

public sealed class FormExportToDsvOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsFormExportToDsvOptions

実装

継承されたメンバー

コンストラクタ

FormExportToDsvOptions(char, bool)

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

public FormExportToDsvOptions(char delimeter = ',', bool addFieldNames = false)

パラメーター

  • delimeter char: エクスポートされたデータの値の間で使用されるデリミターを指定します。デフォルト値は’,‘です。
  • addFieldNames bool: 値の前にフィールド名を追加します。形式: 名前 + デリミター + 値 + デリミター。

プロパティ

AddFieldName

値の前にフィールド名を追加します。 形式: 名前 + デリミター + 値 + デリミター。

public bool AddFieldName { get; set; }

プロパティの値

bool

Delimeter

エクスポートされた値に使用されるデリミター。

public char Delimeter { get; set; }

プロパティの値

char

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

Class FormFlattener

情報

Documentize.FormFlattener プラグインを表します。PDF ドキュメントのフィールドをフラット化するために使用されます。

[Obsolete("The class will be deleted soon. Please use PdfForm class.")]
public static class FormFlattener

Inheritance

objectFormFlattener

Inherited Members

メソッド

GetFieldNames(string)

PDF ドキュメント内のフィールド名を取得します。

public static List<string> GetFieldNames(string path)

Parameters

  • path string: PDF ドキュメントへのパス。

Returns

List<string>

PDF ドキュメント内の名前のリスト。

GetFieldNames(Stream) : PDF ドキュメント内のフィールド名を取得します。

public static List<string> GetFieldNames(Stream stream)

Parameters

  • stream Stream: PDF ドキュメントを含むストリーム。

Returns

List<string>

PDF ドキュメント内の名前のリスト。

Process(FlattenFieldsOptions) : PDF ドキュメントのフォームフィールドをフラット化します。

public static ResultContainer Process(FlattenFieldsOptions options)

Parameters

Returns

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

Exceptions

ArgumentException

オプションが設定されていない場合。

Namespace: Documentize Assembly: Documentize.dll

Class FormFlattenerOptions

情報

Documentize.FormFlattener プラグインによるドキュメント内のフィールドをフラット化するためのオプションを表します。

public class FormFlattenerOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsFormFlattenerOptions

実装

継承メンバー

コンストラクター

FormFlattenerOptions()

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

public FormFlattenerOptions()

プロパティ

SkipFields

フラット化しないフィールドのリストです。

public List<string> SkipFields { get; set; }

プロパティの値

List<string>

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

Class GetFieldNamesOptions

情報

Documentize.PdfForm プラグインによるドキュメント内のフィールド名取得オプションを表します。

public class GetFieldNamesOptions

継承

objectGetFieldNamesOptions

継承されたメンバー

コンストラクター

GetFieldNamesOptions(string)

ファイルへの入力パスを使用したオプションのコンストラクターです。

public GetFieldNamesOptions(string path)

パラメーター

  • path string: ファイルへの入力パス。

GetFieldNamesOptions(Stream)

ストリームを使用したオプションのコンストラクターです。

public GetFieldNamesOptions(Stream stream)

パラメーター

  • stream Stream: 入力ストリーム。

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

Class HtmlConverter

情報

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

[Obsolete("このクラスは近日中に削除されます。PdfConverterクラスを使用してください。")]
public static class HtmlConverter

継承

objectHtmlConverter

継承メンバー

メソッド

Process(PdfToHtmlOptions)

PDFドキュメントをHTML形式に変換します。

public static ResultContainer Process(PdfToHtmlOptions options)

パラメータ

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

戻り値

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

例外

ArgumentException

オプションが設定されていない場合。

Process(HtmlToPdfOptions)

HTMLドキュメントをPDF形式に変換します。

public static ResultContainer Process(HtmlToPdfOptions options)

パラメータ

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

戻り値

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

例外

ArgumentException

オプションが設定されていない場合。

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

Class HtmlToPdfOptions

情報

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

public sealed class HtmlToPdfOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsHtmlToPdfOptions

Implements

Inherited Members

Constructors

HtmlToPdfOptions()

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

public HtmlToPdfOptions()

Properties

BasePath

HTML ファイルのベース パス/URL を指定します。

public string BasePath { get; set; }

Property Value

string

HtmlMediaType

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

public HtmlMediaType HtmlMediaType { get; set; }

Property Value

HtmlMediaType

IsRenderToSinglePage

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

public bool IsRenderToSinglePage { get; set; }

Property Value

bool

PageInfo

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

public PageInfo PageInfo { get; set; }

Property Value

PageInfo

PageLayoutOption

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

public HtmlPageLayoutOption PageLayoutOption { get; set; }

Property Value

HtmlPageLayoutOption

Namespace: Documentize Assembly: Documentize.dll

Class ImageExtractor

情報

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

[Obsolete("このクラスはすぐに削除されます。PdfExtractorクラスを使用してください。")]
public static class ImageExtractor

継承

objectImageExtractor

継承されたメンバー

メソッド

Process(ExtractImagesOptions)

PDFドキュメントから画像を抽出します。

public static ResultContainer Process(ExtractImagesOptions options)

パラメーター

戻り値

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

例外

ArgumentException

optionsが設定されていない場合。

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

Class ImageExtractorOptions

情報

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

public sealed class ImageExtractorOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsImageExtractorOptions

実装

継承されたメンバー

コンストラクター

ImageExtractorOptions()

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

public ImageExtractorOptions()

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

Class Info

情報

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

public static class Info

継承

objectInfo

継承されたメンバー

フィールド

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

フィールドの値

string

製品

製品名。

public const string Product = "Documentize"

フィールドの値

string

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

Class JpegConverter

情報

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

[Obsolete("このクラスはまもなく削除されます。PdfConverter クラスを使用してください。")]
public static class JpegConverter

継承

objectJpegConverter

継承メンバー

メソッド

Process(PdfToJpegOptions)

PDF ドキュメントを JPEG 形式に変換します。

public static ResultContainer Process(PdfToJpegOptions options)

パラメーター

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

返り値

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

例外

ArgumentException

オプションが設定されていない場合。

Namespace: Documentize Assembly: Documentize.dll

Class MergeOptions

情報

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

public sealed class MergeOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsMergeOptions

Implements

Inherited Members

Constructors

MergeOptions()

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

public MergeOptions()

Namespace: Documentize Assembly: Documentize.dll

Class Merger

情報

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

[Obsolete("The class will be deleted soon. Please use PdfManager class.")]
public static class Merger

継承

objectMerger

継承されたメンバー

メソッド

Process(MergeOptions)

PDFドキュメントを統合します。

public static ResultContainer Process(MergeOptions options)

パラメーター

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

返り値

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

例外

ArgumentException

オプションが設定されていない場合。

Namespace: Documentize Assembly: Documentize.dll

Class ObjectResult

情報

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

public sealed class ObjectResult : IOperationResult

継承

objectObjectResult

実装

継承メンバー

プロパティ

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() を返します。

Namespace: Documentize Assembly: Documentize.dll

Class OptimizeOptions

情報

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

public sealed class OptimizeOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsOptimizeOptions

Implements

Inherited Members

Constructors

OptimizeOptions()

Documentize.OptimizeOptions オブジェクトの新しいインスタンスを、既定のオプションで初期化します。 ドキュメントを線形化して、次のことを実現します。

  • 最初のページをできるだけ速く開くこと。
  • 次のページや、次のページへのリンクをできるだけ速く表示すること。
  • ページのデータが遅いチャネルで順次配信される際に、到着したデータを段階的に表示し、最も有用なデータを先に表示すること。
  • ページ全体が受信・表示される前でも、リンクをたどるなどのユーザー操作を実行できるようにすること。
public OptimizeOptions()

Namespace: Documentize Assembly: Documentize.dll

Class Optimizer

情報

Documentize.Optimizerプラグインを表します。PDF文書の最適化、回転、サイズ変更、圧縮に使用されます。

[Obsolete("このクラスはすぐに削除されます。PdfManagerクラスを使用してください。")]
public static class Optimizer

継承

objectOptimizer

継承メンバー

メソッド

Process(OptimizeOptions)

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

public static ResultContainer Process(OptimizeOptions options)

パラメータ

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

戻り値

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

Process(RotateOptions)

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

public static ResultContainer Process(RotateOptions options)

パラメータ

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

戻り値

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

Process(ResizeOptions)

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

public static ResultContainer Process(ResizeOptions options)

パラメータ

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

戻り値

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

Process(CompressOptions)

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

public static ResultContainer Process(CompressOptions options)

パラメータ

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

戻り値

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

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

Class OptionsWithInput

情報

1 つの入力データを使用した操作の基本オプションを表します。

public abstract class OptionsWithInput : IHaveInput

継承

object
OptionsWithInput

派生

実装

継承されたメンバー

フィールド

  • input

フィールド値

IData

プロパティ

Input

入力データを取得または設定します。

public virtual IData Input { get; set; }

プロパティ値

IData

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

Class PageInfo

情報

ページ情報を表します。

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

Class PageSize

情報

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 Assembly: Documentize.dll

Class PdfAConverter

情報

PDF/A形式のPDF文書の変換およびPDF/A準拠の検証を処理するためのプラグインを表します。

[Obsolete("このクラスは近々削除されます。PdfConverterクラスを使用してください。")]
public static class PdfAConverter

継承

objectPdfAConverter

継承メンバー

メソッド

Process(PdfToPdfAOptions)

PDF文書をPDF/A形式に変換します。

public static ResultContainer Process(PdfToPdfAOptions options)

パラメータ

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

戻り値

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

例外

ArgumentException

オプションが設定されていない場合。

Process(PdfAValidateOptions)

指定されたPDF/A形式への準拠をチェックします。

public static ResultContainer Process(PdfAValidateOptions options)

パラメータ

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

戻り値

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

例外

ArgumentException

オプションが設定されていない場合。

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

Class PdfAConvertOptions

情報

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

public sealed class PdfAConvertOptions : PdfAOptionsBase, IPluginOptions

Inheritance

objectPdfAOptionsBasePdfAConvertOptions

Implements

Inherited Members

Constructors

PdfAConvertOptions()

public PdfAConvertOptions()

Properties

Outputs

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

public List<idatasource> Outputs { get; }

Property Value

List<IDataSource>

Methods

AddOutput(IDataSource)

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

public void AddOutput(IDataSource dataSource)

Parameters

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

Namespace: Documentize Assembly: Documentize.dll

Class PdfAOptionsBase

情報

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

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

public abstract class PdfAOptionsBase : IPluginOptions

Inheritance

objectPdfAOptionsBase

Derived

Implements

Inherited Members

Constructors

PdfAOptionsBase()

protected PdfAOptionsBase()

Properties

AlignText

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

public bool AlignText { get; set; }

Property Value

bool

Remarks

true に設定すると、変換プロセスは元のテキストセグメントの境界を復元しようとします。
ほとんどの文書では、デフォルトの false のままで問題なく、テキスト配置はデフォルトの変換プロセスで変わりません。

CheckDifferentNamesInFontDictionaries

ソース PDF 文書が PDF 仕様に一致しない場合の PDF/A 変換を制御するフラグを取得します。

public bool CheckDifferentNamesInFontDictionaries { get; set; }

Property Value

bool

ErrorAction

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

public ConvertErrorAction ErrorAction { get; set; }

Property Value

ConvertErrorAction

IccProfileFileName

PDF/A 変換時に使用する ICC(International Color Consortium)プロファイルのファイル名を、デフォルトのものに代わって取得または設定します。

public string IccProfileFileName { get; set; }

Property Value

string

Inputs

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

public List<idata> Inputs { get; }

Property Value

List<IData>

IsLowMemoryMode

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

public bool IsLowMemoryMode { get; set; }

Property Value

bool

LogOutputSource

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

public IData LogOutputSource { get; set; }

Property Value

IData

OptimizeFileSize

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

public bool OptimizeFileSize { get; set; }

Property Value

bool

Remarks

true に設定すると、変換プロセスは生成されるファイルサイズの最小化を試みます。
これにより変換処理のパフォーマンスに影響を与える可能性があります。

PdfAVersion

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

public PdfAStandardVersion PdfAVersion { get; set; }

Property Value

PdfAStandardVersion

Remarks

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

SoftMaskAction

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

public ConvertSoftMaskAction SoftMaskAction { get; set; }

Property Value

ConvertSoftMaskAction

Methods

AddInput(IData)

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

public void AddInput(IData data)

Parameters

  • data IData: Input data. :

Namespace: Documentize Assembly: Documentize.dll

Class PdfAValidateOptions

情報

PDF ドキュメントの PDF/A 準拠を検証するためのオプションを、Documentize.PdfConverter プラグインで表します。

public sealed class PdfAValidateOptions : PdfAOptionsBase, IPluginOptions

継承

objectPdfAOptionsBasePdfAValidateOptions

実装

継承メンバー

コンストラクター

PdfAValidateOptions()

public PdfAValidateOptions()

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

Class PdfAValidationResult

情報

PDF/A バリデーションプロセスの結果を表します。

public sealed class PdfAValidationResult

Inheritance

objectPdfAValidationResult

Inherited Members

Fields

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

Field Value

IData

IsValid

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

public readonly bool IsValid

Field Value

bool

StandardVersion

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

public readonly PdfAStandardVersion StandardVersion

Field Value

PdfAStandardVersion

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

Class PdfChatGpt

情報

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

[Obsolete("このクラスはまもなく削除されます。PdfManagerクラスを使用してください。")]
public static class PdfChatGpt

継承

objectPdfChatGpt

継承されたメンバー

備考

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

メソッド

Process(IPluginOptions)

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

public static ResultContainer Process(IPluginOptions options)

パラメーター

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

戻り値

ResultContainer : #### 例外

NotImplementedException

ProcessAsync(IPluginOptions)

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

public static Task<resultcontainer> ProcessAsync(IPluginOptions options)

パラメーター

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

戻り値

Task<ResultContainer>

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

例外

ArgumentException : InvalidOperationException

Namespace: Documentize Assembly: Documentize.dll

Class PdfChatGptOptions

情報

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

public class PdfChatGptOptions : IPluginOptions

継承

objectPdfChatGptOptions

派生

実装

継承されたメンバー

コンストラクター

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: 結果を保存するためのデータソース(ファイルまたはストリーム)。 :

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

Class 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

CancellationToken

キャンセルトークン。

public CancellationToken CancellationToken { get; set; }

プロパティ値

CancellationToken

MaxTokens

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

public int? MaxTokens { get; set; }

プロパティ値

int?

Messages

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

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

プロパティ値

List<Message>

備考

オプションに複数のメッセージを追加する場合、メッセージのコレクション内の順序は次の通りです:

  • 最初のメッセージ(存在する場合)はoptions.Queryからで、“あなたは有益なアシスタントです。“という内容のメッセージに続き、役割は"system"です。
  • 次に(存在する場合)、options.Messagesコレクションからメッセージが追加されます。
  • ファイルソースからのメッセージ(存在する場合)は最後に追加され、各ドキュメントに対して"ユーザー"役割の1つのメッセージオブジェクトが追加されます。 一つのメッセージが提供されない場合はArgumentExceptionがスローされます。

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

Class PdfConverter

情報

Represents Documentize.PdfConverter plugin. Used to Convert PDF documents to another formats like DOCX/DOC, XLSX/XLS/CSV/XLSM/ODS, HTML, JPEG, PNG, TIFF, PDF/A. Also allows you to perform PDF/A Validation and Convert HTML to PDF.

Represents Documentize.PdfConverter plugin. Used to Convert PDF documents to another formats like DOCX/DOC, XLSX/XLS/CSV/XLSM/ODS, HTML, JPEG, PNG, TIFF, PDF/A. Also allows you to perform PDF/A Validation and Convert HTML to PDF.

public static class PdfConverter

Inheritance

objectPdfConverter

Inherited Members

Methods

Convert(PdfToDocOptions)

Converts PDF document into DOC/DOCX formats.

public static ResultContainer Convert(PdfToDocOptions options)

Parameters

  • options PdfToDocOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to convert PDF document to Doc format.

// Create PdfToDocOptions object to set instructions
var options = new PdfToDocOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_file.doc"));
// Perform the process
PdfConverter.Convert(options);

The example demonstrates how to convert PDF document to Doc format with setting Mode.

// Create PdfToDocOptions object to set instructions
var options = new PdfToDocOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_file.doc"));
// Set Mode
options.Mode = DocConversionMode.Flow;
// Perform the process
PdfConverter.Convert(options);

Exceptions

ArgumentException

If options not set.

Convert(PdfToXlsOptions)

Converts PDF document into XLSX/XLS/CSV/XLSM/ODS formats.

public static ResultContainer Convert(PdfToXlsOptions options)

Parameters

  • options PdfToXlsOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to convert PDF to XLSX document.

// Create PdfToXlsOptions object to set instructions
var options = new PdfToXlsOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_xlsx_file.xlsx"));
// Perform the process
PdfConverter.Convert(options);

The example demonstrates how to convert PDF to XLS document.

// Create PdfToXlsOptions object to set instructions
var options = new PdfToXlsOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Specify XLS format
options.Format = PdfToXlsOptions.ExcelFormat.XMLSpreadSheet2003;
options.InsertBlankColumnAtFirst = true;
options.MinimizeTheNumberOfWorksheets = true;
// Set output file path
options.AddOutput(new FileData("path_to_result_xlsx_file.xls"));
// Perform the process
PdfConverter.Convert(options);

Exceptions

ArgumentException

If options not set.

Convert(PdfToHtmlOptions)

Converts PDF document into HTML format.

public static ResultContainer Convert(PdfToHtmlOptions options)

Parameters

  • options PdfToHtmlOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to convert PDF to HTML document.

// Create PdfToHtmlOptions object to set output data type as file with embedded resources
var options = new PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType.FileWithEmbeddedResources);
// Add input file path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_output.html"));
//Perform the process
PdfConverter.Convert(options);

Exceptions

ArgumentException

If options not set.

Convert(HtmlToPdfOptions)

Converts HTML document into PDF format.

public static ResultContainer Convert(HtmlToPdfOptions options)

Parameters

  • options HtmlToPdfOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to convert HTML to PDF document.

// Create HtmlToPdfOptions
var options = new HtmlToPdfOptions();
// Add input file path
options.AddInput(new FileData("path_to_input.html"));
// Set output file path
options.AddOutput(new FileData("path_to_output.pdf"));
//Perform the process
PdfConverter.Convert(options);

Exceptions

ArgumentException

If options not set.

Convert(PdfToJpegOptions)

Converts PDF document into JPEG format.

public static ResultContainer Convert(PdfToJpegOptions options)

Parameters

  • options PdfToJpegOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to convert PDF document into JPEG format.

// Create PdfToJpegOptions object to set instructions
var options = new PdfToJpegOptions();
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Perform the process
PdfConverter.Convert(options);

The example demonstrates how to convert PDF document into JPEG format with settings for pages, resolution, quality.

// Create PdfToJpegOptions object to set instructions
var options = new PdfToJpegOptions();
// Process only the first page
options.PageList = [1];
// Set output resolution to 200 DPI
options.OutputResolution = 200;
// Set output quality to 50
options.Quality = 50;
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Perform the process
PdfConverter.Convert(options);

The example demonstrates how to convert PDF document into JPEG format to streams.

// Create PdfToJpegOptions object to set instructions
var options = new PdfToJpegOptions();
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Perform the process
var results = PdfConverter.Convert(options);
// Get stream results
foreach (var result in results.ResultCollection)
{
    var streamResultPage1 = result.ToStream();
}

Exceptions

ArgumentException

If options not set.

Convert(PdfToPngOptions)

Converts PDF document into PNG format.

public static ResultContainer Convert(PdfToPngOptions options)

Parameters

  • options PdfToPngOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to convert PDF document into PNG format.

// Create PdfToPngOptions object to set instructions
var options = new PdfToPngOptions();
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Perform the process
PdfConverter.Convert(options);

The example demonstrates how to convert 1 page of PDF document into PNG format.

// Create PdfToPngOptions object to set instructions
var options = new PdfToPngOptions()
// Process only the first page
options.PageList = [1];
// Set output resolution to 200 DPI
options.OutputResolution = 200;
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Perform the process
PdfConverter.Convert(options);

The example demonstrates how to convert PDF document into PNG format to streams.

// Create PdfToJpegOptions object to set instructions
var options = new PdfToPngOptions();
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Perform the process
var results = PdfConverter.Convert(options);
// Get stream results
foreach (var result in results.ResultCollection)
{
    var streamResultPage1 = result.ToStream();
}

Exceptions

ArgumentException

If options not set.

Convert(PdfToTiffOptions)

Converts PDF document into TIFF format.

public static ResultContainer Convert(PdfToTiffOptions options)

Parameters

  • options PdfToTiffOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to convert PDF document into TIFF format.

// Create PdfToTiffOptions object to set instructions
var options = new PdfToTiffOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Perform the process
PdfConverter.Convert(options);

The example demonstrates how to convert PDF document into TIFF format with Customizing Pages and DPI.

// Create PdfToTiffOptions object to set instructions
var options = new PdfToTiffOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Set Pages
options.PageList = [1, 3];
// Set result image Resolution
options.OutputResolution = 400;
// Perform the process
PdfConverter.Convert(options);

The example demonstrates how to convert PDF document into TIFF as Multi-Page.

// Create PdfToTiffOptions object to set instructions
var options = new PdfToTiffOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Enable Multi-Page TIFF output
options.MultiPage = true;
// Perform the process
PdfConverter.Convert(options);

The example demonstrates how to convert PDF document into TIFF format with Customizing Compression and ColorDepth.

// Create PdfToTiffOptions object to set instructions
var options = new PdfToTiffOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Set Compression and ColorDepth
options.Compression = TiffCompression.RLE;
options.ColorDepth = TiffColorDepth.Format24bpp;
// Perform the process
PdfConverter.Convert(options);

The example demonstrates how to convert PDF document into TIFF format to streams.

// Create PdfToTiffOptions object to set instructions
var options = new PdfToTiffOptions();
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Perform the process
var results = PdfConverter.Convert(options);
// Get stream results
foreach (var result in results.ResultCollection)
{
    var streamResultPage1 = result.ToStream();
}

Exceptions

ArgumentException

If options not set.

Convert(PdfToPdfAOptions)

Converts PDF document into PDF/A format.

public static ResultContainer Convert(PdfToPdfAOptions options)

Parameters

  • options PdfToPdfAOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to convert the PDF document in a PDF/A format (PDF/A-3b in this case):

// Create the options class to set up the conversion process
var options = new PdfToPdfAOptions
{
    PdfAVersion = PdfAStandardVersion.PDF_A_3B
};

// Add the source file
options.AddInput(new FileData("path_to_your_pdf_file.pdf")); // replace with your actual file path

// Add the path to save the converted file
options.AddOutput(new FileData("path_to_the_converted_file.pdf"));

// Run the conversion
PdfConverter.Convert(options);

Exceptions

ArgumentException

If options not set.

Validate(PdfAValidateOptions)

Check PDF document for compliance with specified format PDF/A.

public static ResultContainer Validate(PdfAValidateOptions options)

Parameters

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to validate the PDF document conformance to PDF/A format (PDF/A-1a in this case):

// Create the options class to set up the validation process
var options = new PdfAValidateOptions
{
    PdfAVersion = PdfAStandardVersion.PDF_A_1A
};

// Add one or more files to be validated
options.AddInput(new FileData("path_to_your_first_pdf_file.pdf")); // replace with your actual file path
options.AddInput(new FileData("path_to_your_second_pdf_file.pdf"));
// add more files as needed

// Run the validation and get results
var resultContainer = PdfConverter.Validate(options);

// Check the resultContainer.ResultCollection property for validation results for each file:
foreach (var result in resultContainer.ResultCollection)
{
    var validationResult = (PdfAValidationResult) result.Data;
    var isValid = validationResult.IsValid; // Validation result for document
}

Exceptions

ArgumentException

If options not set.

Namespace: Documentize Assembly: Documentize.dll

Class PdfConverterOptions

情報

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

public abstract class PdfConverterOptions : IPluginOptions

継承

objectPdfConverterOptions

派生

実装

継承されたメンバー

プロパティ

入力

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

Class PdfExtractor

情報

Documentize.PdfExtractor プラグインを表します。PDF ドキュメントからテキスト、画像、フォーム データ、プロパティ(メタ データ)を抽出するために使用します。

public static class PdfExtractor

継承

objectPdfExtractor

継承されたメンバー

メソッド

Extract(ExtractTextOptions)

PDF ドキュメントからテキストを抽出します。

public static string Extract(ExtractTextOptions options)

パラメーター

戻り値

string : 抽出されたテキスト。

PDF ファイルからテキスト コンテンツを抽出する例です。

// 入力ファイル パスを設定する ExtractTextOptions オブジェクトを作成
var options = new ExtractTextOptions("path_to_your_pdf_file.pdf");
// 処理を実行し、抽出されたテキストを取得
var textExtracted = PdfExtractor.Extract(options);

PDF ストリームからテキスト コンテンツを抽出する例です。

// 入力ストリームを設定する ExtractTextOptions オブジェクトを作成
var stream = File.OpenRead("path_to_your_pdf_file.pdf");
var options = new ExtractTextOptions(stream);
// 処理を実行し、抽出されたテキストを取得
var textExtracted = PdfExtractor.Extract(options);

TextFormattingMode を使用して PDF ドキュメントのテキスト コンテンツを抽出する例です。

// 入力ファイル パスと TextFormattingMode を設定する ExtractTextOptions オブジェクトを作成
var options = new ExtractTextOptions("path_to_your_pdf_file.pdf", TextFormattingMode.Pure);
// 処理を実行し、抽出されたテキストを取得
var textExtracted = PdfExtractor.Extract(options);

最も簡潔な形で PDF ファイルからテキストを抽出する例です。

// 処理を実行し、抽出されたテキストを取得
var textExtracted = PdfExtractor.Extract(new ExtractTextOptions("path_to_your_pdf_file.pdf", TextFormattingMode.Pure));

例外

ArgumentException

オプションが設定されていない場合。

Extract(ExtractImagesOptions)

PDF ドキュメントから画像を抽出します。

public static ResultContainer Extract(ExtractImagesOptions options)

パラメーター

戻り値

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

PDF ドキュメントから画像を抽出する例です。

// 指示を設定する ExtractImagesOptions を作成
var options = new ExtractImagesOptions();
// 入力ファイル パスを追加
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// 出力ディレクトリ パスを設定
options.AddOutput(new DirectoryData("path_to_results_directory"));
// 処理を実行
var results = PdfExtractor.Extract(options);
// 画像結果へのパスを取得
var imageExtracted = results.ResultCollection[0].ToFile();

フォルダーなしでストリームに画像を抽出する例です。

// 指示を設定する ExtractImagesOptions を作成
var options = new ExtractImagesOptions();
// 入力ファイル パスを追加
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// 出力を設定しない - 結果はストリームに書き込まれる
// 処理を実行
var results = PdfExtractor.Extract(options);
// ストリームを取得
var ms = results.ResultCollection[0].ToStream();
// デモ用にファイルへコピー
ms.Seek(0, SeekOrigin.Begin);
using (var fs = File.Create("test_file.png"))
{
    ms.CopyTo(fs);
}

例外

ArgumentException

オプションが設定されていない場合。

Extract(ExtractFormDataToDsvOptions)

PDF ドキュメントからフォーム データを抽出します。

public static ResultContainer Extract(ExtractFormDataToDsvOptions options)

パラメーター

戻り値

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

フォームの値を CSV ファイルにエクスポートする例です。

// 指示を設定する ExtractFormDataToDsvOptions オブジェクトを作成
var options = new ExtractFormDataToDsvOptions(',', true);
// 入力ファイル パスを追加
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// 出力ファイル パスを設定
options.AddOutput(new FileData("path_to_result_csv_file.csv"));
// 処理を実行
PdfExtractor.Extract(options);

フォームの値を TSV ファイルにエクスポートし、プロパティを設定する例です。

// 指示を設定する ExtractFormDataToDsvOptions オブジェクトを作成
var options = new ExtractFormDataToDsvOptions();
// デリミタを設定
options.Delimiter = '\t';
// 結果にフィールド名を追加
options.AddFieldName = true;
// 入力ファイル パスを追加
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// 出力ファイル パスを設定
options.AddOutput(new FileData("path_to_result_csv_file.tsv"));
// 処理を実行
PdfExtractor.Extract(options);

例外

ArgumentException

オプションが設定されていない場合。

Extract(ExtractPropertiesOptions)

PDF ドキュメントからプロパティを抽出します。

public static PdfProperties Extract(ExtractPropertiesOptions options)

パラメーター

戻り値

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

PDF ファイルからプロパティ(FileName、Title、Author、Subject、Keywords、Created、Modified、Application、PDF Producer、ページ数)を抽出する例です。

// 入力ファイルを設定する ExtractPropertiesOptions オブジェクトを作成
var options = new ExtractPropertiesOptions("path_to_your_pdf_file.pdf");
// 処理を実行し、プロパティを取得
var pdfProperties = PdfExtractor.Extract(options);
var filename = pdfProperties.FileName;
var title = pdfProperties.Title;
var author = pdfProperties.Author;
var subject = pdfProperties.Subject;
var keywords = pdfProperties.Keywords;
var created = pdfProperties.Created;
var modified = pdfProperties.Modified;
var application = pdfProperties.Application;
var pdfProducer = pdfProperties.PdfProducer;
var numberOfPages = pdfProperties.NumberOfPages;

PDF ストリームからプロパティ(Title、Author、Subject、Keywords、Created、Modified、Application、PDF Producer、ページ数)を抽出する例です。

// 入力ストリームを設定する ExtractPropertiesOptions オブジェクトを作成
var stream = File.OpenRead("path_to_your_pdf_file.pdf");
var options = new ExtractPropertiesOptions(stream);
// 処理を実行し、プロパティを取得
var pdfProperties = PdfExtractor.Extract(options);
var title = pdfProperties.Title;
var author = pdfProperties.Author;
var subject = pdfProperties.Subject;
var keywords = pdfProperties.Keywords;
var created = pdfProperties.Created;
var modified = pdfProperties.Modified;
var application = pdfProperties.Application;
var pdfProducer = pdfProperties.PdfProducer;
var numberOfPages = pdfProperties.NumberOfPages;

最も簡潔な形で PDF ファイルからプロパティを抽出する例です。

// 処理を実行し、プロパティを取得
var pdfProperties = PdfExtractor.Extract(new ExtractPropertiesOptions("path_to_your_pdf_file.pdf"));

例外

ArgumentException

オプションが設定されていない場合。

Namespace: Documentize Assembly: Documentize.dll

Class PdfForm

情報

Documentize.PdfForm プラグインを表します。フラット化やフォームデータの抽出に使用します。また、フィールド名の取得も可能です。

Represents Documentize.PdfForm plugin. Used to Flatten, Extract Forms Data. Also allows you to Get Fields Names.

public static class PdfForm

Inheritance

継承

objectPdfForm

Inherited Members

継承されたメンバー

Methods

Extract(ExtractFormDataToDsvOptions)

PDF ドキュメントからフォームデータを抽出します。

public static ResultContainer Extract(ExtractFormDataToDsvOptions options)

Parameters

パラメータ

Returns

戻り値

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

Examples

The example demonstrates how to Export Form values to CSV file.

// Create ExtractFormDataToDsvOptions object to set instructions
var options = new ExtractFormDataToDsvOptions(',', true);
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_csv_file.csv"));
// Perform the process
PdfForm.Extract(options);

The example demonstrates how to Export Form values to TSV file and set Properties.

// Create ExtractFormDataToDsvOptions object to set instructions
var options = new ExtractFormDataToDsvOptions();
//Set Delimiter
options.Delimiter = '\t';
//Add Field Names to result
options.AddFieldName = true;
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_csv_file.tsv"));
// Perform the process
PdfForm.Extract(options);

Exceptions

例外

ArgumentException

If options not set.

Flatten(FlattenFieldsOptions)

PDF ドキュメント内のフィールドをフラット化します。

public static ResultContainer Flatten(FlattenFieldsOptions options)

Parameters

パラメータ

Returns

戻り値

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

Examples

The example demonstrates how to Flatten fields in PDF file.

// Create FlattenFieldsOptions object to set instructions
var options = new FlattenFieldsOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfForm.Flatten(options);

The example demonstrates how to Flatten fields in PDF file and skip first field.

// Get Fields Names
var fieldNames = PdfForm.GetNames(new GetFieldNamesOptions("path_to_your_pdf_file.pdf"));
// Create FlattenFieldsOptions object to set instructions
var options = new FlattenFieldsOptions();
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Skip 1 field.
options.SkipFields.Add(fieldNames[0]);
// Perform the process
PdfForm.Flatten(options);

Exceptions

例外

ArgumentException

If options not set.

GetNames(GetFieldNamesOptions)

PDF ドキュメント内のフィールド名を取得します。

public static List<string> GetNames(GetFieldNamesOptions options)

Parameters

パラメータ

Returns

戻り値

List<string>

PDF ドキュメント内の名前のリスト。

Examples

The example demonstrates how to Get field Names from PDF file.

// Get Field Names
var fieldNames = PdfForm.GetNames(new GetFieldNamesOptions("path_to_your_pdf_file.pdf"));

Remove(RemoveFieldsOptions) : Remove Fields from PDF document.

public static ResultContainer Remove(RemoveFieldsOptions options)

Parameters

パラメータ

Returns

戻り値

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

Examples

The example demonstrates how to Remove fields from PDF file.

// Create RemoveFieldsOptions object to set instructions
var options = new RemoveFieldsOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfForm.Remove(options);

Exceptions

例外

ArgumentException

If options not set.

Namespace: Documentize Assembly: Documentize.dll

Class PdfManager

情報

Represents Documentize.PdfManager plugin. Used to Merge, Split, Optimize, Rotate, Resize, Compress PDF documents and Add Table, Add TOC to PDF documents. Can Merge multiple PDF documents into a single PDF. Can Split PDF documents into separate pages. Can Optimize, Rotate, Resize, Compress PDF documents. Can Rotate, Resize Pages of PDF document. Can Add a Table to a PDF document. Can Add a Table of Contents to PDF document.

Represents Documentize.PdfManager plugin. Used to Merge, Split, Optimize, Rotate, Resize, Compress PDF documents and Add Table, Add TOC to PDF documents. Can Merge multiple PDF documents into a single PDF. Can Split PDF documents into separate pages. Can Optimize, Rotate, Resize, Compress PDF documents. Can Rotate, Resize Pages of PDF document. Can Add a Table to a PDF document. Can Add a Table of Contents to PDF document.

public static class PdfManager

Inheritance

objectPdfManager

Inherited Members

Methods

AddTable(TableOptions)

Add Table to PDF document.

public static ResultContainer AddTable(TableOptions options)

Parameters

  • options TableOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to Add Table to PDF file.

// Configure table options
var options = new TableOptions();
options.InsertPageBefore(1)
   .AddTable()
        .AddRow()
            .AddCell().AddParagraph("Name")
            .AddCell().AddParagraph("Age")
        .AddRow()
            .AddCell().AddParagraph("Bob")
            .AddCell().AddParagraph("12")
        .AddRow()
            .AddCell().AddParagraph("Sam")
            .AddCell().AddParagraph("20")
        .AddRow()
            .AddCell().AddParagraph("Sandy")
            .AddCell().AddParagraph("26")
        .AddRow()
            .AddCell().AddParagraph("Tom")
            .AddCell().AddParagraph("12")
        .AddRow()
            .AddCell().AddParagraph("Jim")
            .AddCell().AddParagraph("27");
// Add input file path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_output.pdf"));
// Perform the process
PdfManager.AddTable(options);

The example demonstrates how to Add Table to PDF file before 2 page.

// Configure table options
var options = new TableOptions();
options.InsertPageBefore(2) // Add table before page 2
   .AddTable()
        .AddRow()
            .AddCell().AddParagraph("Name")
            .AddCell().AddParagraph("Age");
// Add input file path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_output.pdf"));
// Perform the process
PdfManager.AddTable(options);

Exceptions

ArgumentException

If options not set.

AddTableOfContents(TocOptions)

Add Table of Contents (TOC) to PDF document.

public static ResultContainer AddTableOfContents(TocOptions options)

Parameters

  • options TocOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to add Table of Contents to PDF file.

// Create TocOptions object to set instructions
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2));
options.Headings.Add(new TocHeading("Chapter I", 3));
options.Headings.Add(new TocHeading("Chapter II", 4));
options.Headings.Add(new TocHeading("Chapter III", 5));
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.AddTableOfContents(options);

The example demonstrates how to add Table of Contents to PDF file with generating bookmarks.

// Create TocOptions object to set instructions
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Generate links in bookmarks
options.GenerateBookmarks = true;
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2, false, 1));
options.Headings.Add(new TocHeading("Chapter I", 3, true, 1));
options.Headings.Add(new TocHeading("Chapter II", 4, true, 1));
options.Headings.Add(new TocHeading("Example A", 4, true, 2));
options.Headings.Add(new TocHeading("Example B", 4, true, 2));
options.Headings.Add(new TocHeading("Example C", 4, true, 2));
options.Headings.Add(new TocHeading("Example D", 4, true, 2));
options.Headings.Add(new TocHeading("Chapter III", 5, true, 1));
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.AddTableOfContents(options);

The example demonstrates how to add Table of Contents to PDF file and save as stream.

// Create TocOptions object to set instructions
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2, false, 1));
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output stream 
var outputStream = new MemoryStream();
options.AddOutput(new StreamData(outputStream));
options.CloseOutputStreams = false;
// Perform the process
PdfManager.AddTableOfContents(options);

The example demonstrates how to add Table of Contents to PDF file with Customizing the TOC Heading.

// Create TocOptions object to set instructions
var heading = new TocHeading();
heading.Text = "Intro";
heading.PageNumber = 5;
heading.GenerateNumbering = true;
heading.Level = 2;
var tocOptions = new TocOptions();
tocOptions.Headings.Add(heading);
// Add input and output files
tocOptions.AddInput(new FileData("path_to_your_pdf_file.pdf"));
tocOptions.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Generate the TOC with customized options
PdfManager.AddTableOfContents(tocOptions);

Exceptions

ArgumentException

If options not set.

Compress(CompressOptions)

Compress PDF document. Try to reduce size of the document.

public static ResultContainer Compress(CompressOptions options)

Parameters

  • options CompressOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to Compress PDF document.

// Create CompressOptions object to set instructions
var options = new CompressOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Compress(options);

Exceptions

ArgumentException

If options not set.

CreatePdfByChatGptRequestAsync(ChatGptRequestOptions)

Create PDF document by Reply of ChatGpt. Used to send requests to ChatGPT directly or by adding PDF file sources and save the reply to the output source.

public static Task<resultcontainer> CreatePdfByChatGptRequestAsync(ChatGptRequestOptions options)

Parameters

Returns

Task<ResultContainer>

An object containing the result of the operation.

Examples

The example demonstrates how to use ChatGpt by adding messages to the request.

var options = new ChatGptRequestOptions();
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf")); 
options.ApiKey = "Your API key."; // You need to provide the key to access the API.
options.MaxTokens = 1000; // The maximum number of tokens to generate in the chat completion.

// Add the request messages.
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
});

// Process the request.
var result = await PdfManager.CreatePdfByChatGptRequestAsync(options);

var fileResultPath = result.ResultCollection[0].Data;
var chatCompletionObject = result.ResultCollection[1].Data as ChatCompletion; // The ChatGPT API chat completion object.

The example demonstrates how to use ChatGpt by adding one message to the request.

var options = new ChatGptRequestOptions();
options.AddOutput(new FileData("path_to_result_pdf_file.pdf")); // Add the output file path.
options.ApiKey = "Your API key."; // You need to provide the key to access the API.
options.MaxTokens = 1000; // The maximum number of tokens to generate in the chat completion.

// Add the request message.
// In this case, the system message with Content = "You are a helpful assistant." is added by default.
// The role of the query message is "user" by default.
options.Query = "What is the lowest temperature recorded on the Earth?";

// Process the request.
var result = await PdfManager.CreatePdfByChatGptRequestAsync(options);

var fileResultPath = result.ResultCollection[0].Data;
var chatCompletionObject = result.ResultCollection[1].Data as ChatCompletion; // The ChatGPT API chat completion object.

The example demonstrates how to use Chat by adding file(s) as the message source(s).

var options = new ChatGptRequestOptions();
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));

// Add the PDF text source.
// In case of multiple sources, the text from each document will be added to the request message collection
// as a separate message with the role "user".
options.AddInput(new FileData("TextSource.pdf"));

options.ApiKey = "Your API key."; // You need to provide the key to access the API.
options.MaxTokens = 1000; // The maximum number of tokens to generate in the chat completion.

// Add the request message.
// In this case, the system message with Content = "You are a helpful assistant." is added by default.
// The role of the query message is "user" by default.
options.Query = "How many letters in the provided text?";

// Process the request.
var result = await PdfManager.CreatePdfByChatGptRequestAsync(options);

var fileResultPath = result.ResultCollection[0].Data;
var chatCompletionObject = result.ResultCollection[1].Data as ChatCompletion; // The ChatGPT API chat completion object.

Exceptions

ArgumentException : If options not set.

Merge(MergeOptions)

Merge PDF documents.

public static ResultContainer Merge(MergeOptions options)

Parameters

  • options MergeOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to Merge two PDF documents.

// Create MergeOptions object to set instructions
var options = new MergeOptions();
// Add input file paths
options.AddInput(new FileData("path_to_your_pdf_file_1.pdf"));
options.AddInput(new FileData("path_to_your_pdf_file_2.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Merge(options);

Exceptions

ArgumentException

If options not set.

Optimize(OptimizeOptions)

Optimize PDF document. Linearize the document in order to

  • open the first page as quickly as possible;
  • display next page or follow by link to the next page as quickly as possible;
  • display the page incrementally as it arrives when data for a page is delivered over a slow channel (display the most useful data first);
  • permit user interaction, such as following a link, to be performed even before the entire page has been received and displayed.
public static ResultContainer Optimize(OptimizeOptions options)

Parameters

  • options OptimizeOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to Optimize PDF document.

// Create OptimizeOptions object to set instructions
var options = new OptimizeOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Optimize(options);

Exceptions

ArgumentException

If options not set.

Resize(ResizeOptions)

Resize Pages of PDF document.

public static ResultContainer Resize(ResizeOptions options)

Parameters

  • options ResizeOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to Resize PDF document.

// Create ResizeOptions object to set instructions
var options = new ResizeOptions();
// Set new PageSize
options.PageSize = PageSize.A3;
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Resize(options);

Exceptions

ArgumentException

If options not set.

Rotate(RotateOptions)

Rotate Pages of PDF document.

public static ResultContainer Rotate(RotateOptions options)

Parameters

  • options RotateOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to Rotate PDF document.

// Create RotateOptions object to set instructions
var options = new RotateOptions();
// Set new Rotation
options.Rotation = Rotation.On90;
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Rotate(options);

Exceptions

ArgumentException

If options not set.

Split(SplitOptions)

Split PDF document by pages.

public static ResultContainer Split(SplitOptions options)

Parameters

  • options SplitOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to Split PDF document.

// Create SplitOptions object to set instructions
var options = new SplitOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file paths
options.AddOutput(new FileData("path_to_result_pdf_file_1.pdf"));
options.AddOutput(new FileData("path_to_result_pdf_file_2.pdf"));
// Perform the process
PdfManager.Split(options);

Exceptions

ArgumentException

If options not set.

Namespace: Documentize Assembly: Documentize.dll

Class PdfProperties

情報

PDF ドキュメントのプロパティとメタ情報を表します。

public class PdfProperties

継承

objectPdfProperties

継承されたメンバー

コンストラクタ

PdfProperties()

public PdfProperties()

プロパティ

Application

PDF アプリケーションを取得または設定します。

public string Application { get; set; }

プロパティの型

string

Author

PDF 作者を取得または設定します。

public string Author { get; set; }

プロパティの型

string

Created

PDF 作成日を取得または設定します。

public DateTime? Created { get; set; }

プロパティの型

DateTime?

FileName

利用可能な場合、PDF ファイル名を取得または設定します。

public string FileName { get; set; }

プロパティの型

string

Keywords

PDF キーワードを取得または設定します。

public string Keywords { get; set; }

プロパティの型

string

Modified

PDF 更新日を取得または設定します。

public DateTime? Modified { get; set; }

プロパティの型

DateTime?

NumberOfPages

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

public int NumberOfPages { get; set; }

プロパティの型

int

PdfProducer

PDF プロデューサーを取得または設定します。

public string PdfProducer { get; set; }

プロパティの型

string

Subject

PDF の件名を取得または設定します。

public string Subject { get; set; }

プロパティの型

string

Title

PDF のタイトルを取得または設定します。

public string Title { get; set; }

プロパティの型

string

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

Class PdfSecurity

情報

Documentize.PdfSecurity プラグインを表します。PDF ドキュメントの暗号化、復号化、署名に使用します。

public static class PdfSecurity

Inheritance

objectPdfSecurity

Inherited Members

Methods

Decrypt(DecryptOptions)

PDF ドキュメントを復号化します。

public static ResultContainer Decrypt(DecryptOptions options)

Parameters

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

Returns

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

Examples

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

// Create DecryptOptions object to set instructions
var options = new DecryptOptions("123456");
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Decrypt(options);

Exceptions

ArgumentException

options が設定されていない場合。

Encrypt(EncryptOptions)

PDF ドキュメントを暗号化します。

public static ResultContainer Encrypt(EncryptOptions options)

Parameters

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

Returns

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

Examples

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

// Create EncryptOptions object to set instructions
var options = new EncryptOptions("123456", "qwerty");
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Encrypt(options);

Exceptions

ArgumentException

options が設定されていない場合。

Sign(SignOptions)

デジタル署名で PDF ドキュメントに署名します。

public static ResultContainer Sign(SignOptions options)

Parameters

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

Returns

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

Examples

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

// Create SignOptions object to set instructions
var options = new SignOptions("path_to_your_pfx_file.pfx", "password_of_your_pfx_file");
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Sign(options);

この例は PFX ファイルのストリームを使用して PDF ドキュメントに署名する方法を示しています。

using var pfxStream = File.OpenRead(@"path_to_your_pfx_file.pfx");
var options = new SignOptions(pfxStream, "password_of_your_pfx_file");
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Sign(options);

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

var options = new SignOptions("path_to_your_pfx_file.pfx", "password_of_your_pfx_file");
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Configure invisible signature
signOptions.Visible = false;
// Perform the process
PdfSecurity.Sign(options);

この例は追加オプションを使用して PDF ドキュメントに署名する方法を示しています。

// Create SignOptions object to set instructions
var options = new SignOptions("path_to_your_pfx_file.pfx", "password_of_your_pfx_file");
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Optional parameters
options.Reason = "my Reason";
options.Contact = "my Contact";
options.Location = "my Location";
options.PageNumber = 3;
// Perform the process
PdfSecurity.Sign(options);

この例はタイムスタンプ付きで PDF ドキュメントに署名する方法を示しています。

// Create SignOptions object to set instructions
var options = new SignOptions("path_to_your_pfx_file.pfx", "password_for_your_pfx_file");
options.TimestampOptions = new TimestampOptions("server_url");
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Sign(options);

Exceptions

ArgumentException

options が設定されていない場合。

Namespace: Documentize Assembly: Documentize.dll

Class PdfToDocOptions

情報

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

public sealed class PdfToDocOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsPdfToDocOptions

実装

継承されたメンバー

コンストラクター

PdfToDocOptions()

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

public PdfToDocOptions()

プロパティ

Mode

PDF ドキュメントをワードプロセッシング ドキュメントに変換する方法を制御できます。

public DocConversionMode Mode { get; set; }

プロパティの値

DocConversionMode

備考

生成されるドキュメントが大幅に編集されない場合は、Documentize.DocConversionMode.TextBox モードを使用します。テキスト ボックスは、変更が少ない場合に簡単に修正できます。

出力ドキュメントでさらなる編集が必要な場合は、Documentize.DocConversionMode.Flow モードを使用します。フローモードの段落やテキスト行はテキストの修正が容易ですが、サポートされていない書式オブジェクトは Documentize.DocConversionMode.TextBox モードより見栄えが悪くなります。

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

Class PdfToHtmlOptions

情報

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

public sealed class PdfToHtmlOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsPdfToHtmlOptions

実装

継承されたメンバー

コンストラクター

PdfToHtmlOptions(SaveDataType)

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

public PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType outputDataType = SaveDataType.FileWithExternalResources)

パラメーター

プロパティ

OutputDataType

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

public PdfToHtmlOptions.SaveDataType OutputDataType { get; }

プロパティの値

PdfToHtmlOptions.SaveDataType

Namespace: Documentize Assembly: Documentize.dll

Class PdfToJpegOptions

情報

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

public sealed class PdfToJpegOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsPdfToJpegOptions

Implements

Inherited Members

Constructors

PdfToJpegOptions()

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

public PdfToJpegOptions()

Properties

OutputResolution

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

public int OutputResolution { get; set; }

Property Value

int

PageList

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

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

Property Value

List<int>

Quality

出力品質を取得および設定します。
画像の圧縮レベルを指定します。
品質の有用な範囲は 0 から 100 です。
指定した数値が低いほど圧縮率が高くなり、画像の品質は低くなります。
0 は最低品質、100 は最高品質を表します。

public int Quality { get; set; }

Property Value

int

Namespace: Documentize Assembly: Documentize.dll

Class PdfToPdfAOptions

情報

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

public sealed class PdfToPdfAOptions : PdfAOptionsBase, IPluginOptions

継承

objectPdfAOptionsBasePdfToPdfAOptions

実装

継承されたメンバー

コンストラクター

PdfToPdfAOptions()

public PdfToPdfAOptions()

プロパティ

Outputs

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

public List<idata> Outputs { get; }

プロパティの値

List<IData>

メソッド

AddOutput(IData)

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

public void AddOutput(IData data)

パラメーター

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

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

Class PdfToPngOptions

情報

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

public sealed class PdfToPngOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsPdfToPngOptions

実装

継承されたメンバー

コンストラクター

PdfToPngOptions()

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

public PdfToPngOptions()

プロパティ

OutputResolution

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

public int OutputResolution { get; set; }

プロパティの値

int

PageList

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

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

プロパティの値

List<int>

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

Class PdfToTiffOptions

情報

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

public sealed class PdfToTiffOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsPdfToTiffOptions

実装

継承されたメンバー

コンストラクター

PdfToTiffOptions()

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

public PdfToTiffOptions()

プロパティ

ColorDepth

カラー深度を取得または設定します。

public TiffColorDepth ColorDepth { get; set; }

プロパティの値

TiffColorDepth

備考

デフォルト値は Documentize.TiffColorDepth.Format32bpp です。

Compression

圧縮タイプを取得または設定します。

public TiffCompression Compression { get; set; }

プロパティの値

TiffCompression

備考

デフォルト値は Documentize.TiffCompression.LZW です。

MultiPage

すべてのページを 1 つのマルチページ TIFF に保存できるかどうかのフラグを取得および設定します。 デフォルト値は false です。

public bool MultiPage { get; set; }

プロパティの値

bool

OutputResolution

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

public int OutputResolution { get; set; }

プロパティの値

int

PageList

処理対象のページ一覧を取得または設定します。

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

プロパティの値

List<int>

Namespace: Documentize Assembly: Documentize.dll

Class PdfToXlsOptions

情報

Documentize.PdfConverter プラグイン用の PDF から XLS/XLSX へのコンバータオプションを表します。

public sealed class PdfToXlsOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsPdfToXlsOptions

Implements

Inherited Members

Constructors

PdfToXlsOptions()

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

public PdfToXlsOptions()

Properties

Format

出力フォーマット。

public PdfToXlsOptions.ExcelFormat Format { get; set; }

Property Value

PdfToXlsOptions.ExcelFormat

InsertBlankColumnAtFirst

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

public bool InsertBlankColumnAtFirst { get; set; }

Property Value

bool

MinimizeTheNumberOfWorksheets

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

public bool MinimizeTheNumberOfWorksheets { get; set; }

Property Value

bool

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

Class PluginBaseOptions

情報

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

public class PluginBaseOptions : IPluginOptions

Inheritance

objectPluginBaseOptions

Derived

Implements

Inherited Members

Properties

CloseInputStreams

操作完了後に入力ストリームを閉じます。

public bool CloseInputStreams { get; set; }

Property Value

bool

CloseOutputStreams

操作完了後に出力ストリームを閉じます。

public bool CloseOutputStreams { get; set; }

Property Value

bool

Inputs

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

public List<idata> Inputs { get; }

Property Value

List<IData>

Outputs

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

public List<idata> Outputs { get; }

Property Value

List<IData>

Methods

AddInput(IData)

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

public void AddInput(IData data)

Parameters

  • data IData: 追加するデータ。

AddOutput(IData)

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

public void AddOutput(IData data)

Parameters

  • data IData: 追加するデータ。 :

Namespace: Documentize Assembly: Documentize.dll

Class PngConverter

情報

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

[Obsolete("このクラスはすぐに削除されます。PdfConverterクラスを使用してください。")]
public static class PngConverter

継承

objectPngConverter

継承されたメンバー

メソッド

Process(PdfToPngOptions)

PDFドキュメントをPNG形式に変換します。

public static ResultContainer Process(PdfToPngOptions options)

パラメータ

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

戻り値

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

例外

ArgumentException

オプションが設定されていない場合。

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

Class Rectangle

情報

クラスは長方形を表します。

public class Rectangle

継承

objectRectangle

継承されたメンバー

コンストラクター

Rectangle(double, double, double, double)

Rectangleのコンストラクターです。

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

パラメーター

Namespace: Documentize Assembly: Documentize.dll

Class RemoveFieldsOptions

情報

Documentize.PdfForm プラグインによるドキュメントのフィールド削除オプションを表します。

public class RemoveFieldsOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsRemoveFieldsOptions

実装

継承メンバー

コンストラクター

RemoveFieldsOptions()

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

public RemoveFieldsOptions()

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

Class ResizeOptions

情報

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

public sealed class ResizeOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsResizeOptions

Implements

Inherited Members

Constructors

ResizeOptions()

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

public ResizeOptions()

Properties

PageSize

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

public PageSize PageSize { get; set; }

Property Value

PageSize

Namespace: Documentize Assembly: Documentize.dll

Class ResultContainer

情報

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

public class ResultContainer

継承

objectResultContainer

継承メンバー

プロパティ

ResultCollection

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

public List<ioperationresult> ResultCollection { get; }

プロパティ値

List<IOperationResult>

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

Class RotateOptions

情報

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

public sealed class RotateOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsRotateOptions

実装

継承されたメンバー

コンストラクタ

RotateOptions()

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

public RotateOptions()

プロパティ

Rotation

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

public Rotation Rotation { get; set; }

プロパティ値

Rotation

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

Class SignOptions

情報

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

public sealed class SignOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsSignOptions

Implements

Inherited Members

Constructors

SignOptions(string, string)

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

public SignOptions(string pfx, string password)

Parameters

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

SignOptions(Stream, string)

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

public SignOptions(Stream pfx, string password)

Parameters

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

Properties

Contact

署名の連絡先。

public string Contact { get; set; }

Property Value

string

Location

署名の位置。

public string Location { get; set; }

Property Value

string

Name

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

public string Name { get; set; }

Property Value

string

PageNumber

署名を行うページ番号。

public int PageNumber { get; set; }

Property Value

int

Reason

署名の理由。

public string Reason { get; set; }

Property Value

string

Rectangle

署名の矩形領域。

public Rectangle Rectangle { get; set; }

Property Value

Rectangle

TimestampOptions

タイムスタンプオプション。

public TimestampOptions TimestampOptions { get; set; }

Property Value

TimestampOptions

Visible

署名の可視性。

public bool Visible { get; set; }

Property Value

bool

Namespace: Documentize Assembly: Documentize.dll

Class SplitOptions

情報

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

public sealed class SplitOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsSplitOptions

Implements

Inherited Members

Constructors

SplitOptions()

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

public SplitOptions()

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

Class Splitter

情報

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

[Obsolete("このクラスはまもなく削除されます。PdfManagerクラスを使用してください。")]
public static class Splitter

継承

objectSplitter

継承されたメンバー

メソッド

Process(SplitOptions)

ページごとにPDF文書を分割します。

public static ResultContainer Process(SplitOptions options)

パラメーター

  • options SplitOptions: 操作に対する指示を含むオプションオブジェクトです。

戻り値

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

例外

ArgumentException

オプションが設定されていない場合。

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

Class StreamData

情報

読込および保存操作のためのストリームデータを表します。

public sealed class StreamData : IData

継承

objectStreamData

実装

継承されたメンバー

コンストラクター

StreamData(Stream)

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

public StreamData(Stream data)

パラメーター

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

プロパティ

Data

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

public Stream Data { get; }

プロパティ値

Stream

DataType

データの種類 (ストリーム)。

public DataType DataType { get; }

プロパティ値

DataType

Namespace: Documentize Assembly: Documentize.dll

Class 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

Namespace: Documentize Assembly: Documentize.dll

Class StreamResult

情報

ストリームの形で操作結果を表します。

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

Class StringResult

情報

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

public sealed class StringResult : IOperationResult

継承

objectStringResult

実装

継承されたメンバー

プロパティ

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() を返します。

Namespace: Documentize
Assembly: Documentize.dll

Class TableBuilder

情報

クラスは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への変換の結果。

Namespace: Documentize Assembly: Documentize.dll

Class 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 のインスタンスです。

Namespace: Documentize Assembly: Documentize.dll

Class TableGenerator

情報

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

[Obsolete("The class will be deleted soon. Please use PdfManager class.")]
public static class TableGenerator

Inheritance

objectTableGenerator

Inherited Members

Examples

この例は、PDF ファイルに表を追加する方法を示します。

// Configure table options
var options = new TableOptions().InsertPageBefore(1)
   .AddTable()
        .AddRow()
            .AddCell().AddParagraph("Name")
            .AddCell().AddParagraph("Age")
        .AddRow()
            .AddCell().AddParagraph("Bob")
            .AddCell().AddParagraph("12")
        .AddRow()
            .AddCell().AddParagraph("Sam")
            .AddCell().AddParagraph("20")
        .AddRow()
            .AddCell().AddParagraph("Sandy")
            .AddCell().AddParagraph("26")
        .AddRow()
            .AddCell().AddParagraph("Tom")
            .AddCell().AddParagraph("12")
        .AddRow()
            .AddCell().AddParagraph("Jim")
            .AddCell().AddParagraph("27");
// Add input file path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_output.pdf"));
// Perform the process
TableGenerator.Process(options);

Methods

Process(TableOptions)

PDF ドキュメントに表を追加します。

public static ResultContainer Process(TableOptions options)

Parameters

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

Returns

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

Exceptions

ArgumentException

オプションが設定されていない場合。

Namespace: Documentize Assembly: Documentize.dll

Class TableOptions

情報

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

public sealed class TableOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsTableOptions

Implements

Inherited Members

Constructors

TableOptions()

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

public TableOptions()

Methods

AddTable()

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

public TableBuilder AddTable()

Returns

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

Create()

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

public static TableOptions Create()

Returns

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

InsertPageAfter(int)

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

public TableOptions InsertPageAfter(int page)

Parameters

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

Returns

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

InsertPageBefore(int)

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

public TableOptions InsertPageBefore(int page)

Parameters

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

Returns

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

Namespace: Documentize Assembly: Documentize.dll

Class 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

Class TextExtractor

情報

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

[Obsolete("The class will be deleted soon. Please use PdfExtractor class.")]
public static class TextExtractor

継承

objectTextExtractor

継承されたメンバー

メソッド

Process(ExtractTextOptions)

PDF ドキュメントからテキストを抽出します。

public static string Process(ExtractTextOptions options)

パラメータ

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

戻り値

string : 抽出結果を含むオブジェクトです。

例外

ArgumentException

オプションが設定されていない場合。

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

Class TextExtractorOptions

情報

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

public sealed class TextExtractorOptions

継承

objectTextExtractorOptions

継承メンバー

コンストラクタ

TextExtractorOptions(TextFormattingMode)

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

public TextExtractorOptions(TextFormattingMode formattingMode = TextFormattingMode.Raw)

パラメーター

プロパティ

FormattingMode

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

public TextFormattingMode FormattingMode { get; set; }

プロパティ値

TextFormattingMode

Inputs

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

public List<idatasource> Inputs { get; }

プロパティ値

List<IDataSource>

メソッド

AddInput(IDataSource)

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

public void AddInput(IDataSource dataSource)

パラメーター

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

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

Class TiffConverter

情報

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

[Obsolete("このクラスはまもなく削除されます。PdfConverter クラスを使用してください。")]
public static class TiffConverter

継承

objectTiffConverter

継承されたメンバー

メソッド

Process(PdfToTiffOptions)

PDF ドキュメントを TIFF フォーマットに変換します。

public static ResultContainer Process(PdfToTiffOptions options)

パラメーター

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

戻り値

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

例外

ArgumentException

オプションが設定されていない場合。

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

Class Timestamp

情報

Documentize.Timestampプラグインを表します。ドキュメントにタイムスタンプを追加するために使用されます。

[Obsolete("このクラスはすぐに削除されます。PdfSecurityクラスを使用してください。")]
public static class Timestamp

継承

objectTimestamp

継承されたメンバー

メソッド

Process(AddTimestampOptions)

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

public static ResultContainer Process(AddTimestampOptions options)

パラメータ

  • options AddTimestampOptions: 操作に関する指示を含むオプションオブジェクト。

戻り値

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

例外

ArgumentException

optionsが設定されていない場合。

Namespace: Documentize Assembly: Documentize.dll

Class TimestampOptions

public class TimestampOptions

継承

objectTimestampOptions

継承されたメンバー

コンストラクター

TimestampOptions(string, string)

Documentize.TimestampOptions クラスの新しいインスタンスを初期化します。

public TimestampOptions(string serverUrl, string basicAuthCredentials = "")

パラメーター

  • serverUrl string: タイムスタンプサーバーの URL。
  • basicAuthCredentials string: 基本認証資格情報で、ユーザー名とパスワードが “username:password” の文字列として結合されています。

プロパティ

BasicAuthCredentials

基本認証資格情報を取得/設定します。ユーザー名とパスワードが “username:password” の文字列として結合されています。

public string BasicAuthCredentials { get; set; }

プロパティの値

string

ServerUrl

タイムスタンプサーバーの URL を取得/設定します。

public string ServerUrl { get; set; }

プロパティの値

string

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

Class TocGenerator

情報

Documentize.TocGenerator プラグインを表します。PDF ドキュメントに目次を追加するために使用されます。

[Obsolete("The class will be deleted soon. Please use PdfManager class.")]
public static class TocGenerator

継承

objectTocGenerator

継承されたメンバー

この例は PDF ファイルに目次を追加する方法を示しています。

// Create TocOptions object to set instructions
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2));
options.Headings.Add(new TocHeading("Chapter I", 3));
options.Headings.Add(new TocHeading("Chapter II", 4));
options.Headings.Add(new TocHeading("Chapter III", 5));
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
TocGenerator.Process(options);

この例はブックマークを生成しながら PDF ファイルに目次を追加する方法を示しています。

// Create TocOptions object to set instructions
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Generate links in bookmarks
options.GenerateBookmarks = true;
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2, false, 1));
options.Headings.Add(new TocHeading("Chapter I", 3, true, 1));
options.Headings.Add(new TocHeading("Chapter II", 4, true, 1));
options.Headings.Add(new TocHeading("Example A", 4, true, 2));
options.Headings.Add(new TocHeading("Example B", 4, true, 2));
options.Headings.Add(new TocHeading("Example C", 4, true, 2));
options.Headings.Add(new TocHeading("Example D", 4, true, 2));
options.Headings.Add(new TocHeading("Chapter III", 5, true, 1));
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
TocGenerator.Process(options);

この例は PDF ファイルに目次を追加し、ストリームとして保存する方法を示しています。

// Create TocOptions object to set instructions
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2, false, 1));
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output stream 
var outputStream = new MemoryStream();
options.AddOutput(new StreamData(outputStream));
options.CloseOutputStreams = false;
// Perform the process
TocGenerator.Process(options);

メソッド

Process(TocOptions)

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

public static ResultContainer Process(TocOptions options)

パラメーター

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

戻り値

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

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

Class TocHeading

情報

Documentize.PdfManagerプラグインを使用して目次の見出しやタイトルを文書化するためのオプションを表します。

public class TocHeading

継承

objectTocHeading

継承されたメンバー

コンストラクタ

TocHeading(string, int, bool, int)

Documentize.TocHeadingの新しいインスタンスを初期化します。

public TocHeading(string text = "", int pageNumber = 1, bool generateNumbering = false, int level = 1)

パラメータ

  • text string: 見出しのテキスト。
  • pageNumber int: リンクのページ番号。
  • generateNumbering bool: 番号生成を使用。
  • level int: レベル。

プロパティ

GenerateNumbering

番号生成を使用します。 trueの場合、自動的に番号が付けられます。それ以外の場合は手動で番号を付ける必要があります。

public bool GenerateNumbering { get; set; }

プロパティの値

bool

Level

レベル。 番号生成に使用されます。

public int Level { get; set; }

プロパティの値

int

PageNumber

リンクのためのページ番号。

public int PageNumber { get; set; }

プロパティの値

int

Text

タイトルのテキスト。

public string Text { get; set; }

プロパティの値

string

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

Class TocOptions

情報

Documentize.PdfManager プラグインによって文書に目次を追加するためのオプションを表します。

public sealed class TocOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsTocOptions

Implements

Inherited Members

Constructors

TocOptions()

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

public TocOptions()

Properties

GenerateBookmarks

ブックマークの生成を使用します。
true に設定すると、ブックマークはクリアされ見出しに基づいて生成されます。false の場合、ブックマークは変更されません。

public bool GenerateBookmarks { get; set; }

Property Value

bool

Headings

目次の見出しまたはタイトル。

public List<tocheading> Headings { get; set; }

Property Value

List<TocHeading>

Title

目次のタイトル。

public string Title { get; set; }

Property Value

string

Namespace: Documentize Assembly: Documentize.dll

Class XlsConverter

情報

Documentize.XlsConverter プラグインを表します。PDF ドキュメントを XLSX/XLS/CSV/XLSM/ODS 形式に変換するために使用されます。

[Obsolete("このクラスは間もなく削除されます。PdfConverter クラスを使用してください。")]
public static class XlsConverter

継承

objectXlsConverter

継承メンバー

メソッド

Process(PdfToXlsOptions)

PDF ドキュメントを XLSX/XLS/CSV/XLSM/ODS 形式に変換します。

public static ResultContainer Process(PdfToXlsOptions options)

パラメータ

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

戻り値

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

例外

ArgumentException

オプションが設定されていない場合。

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

Enum ConvertErrorAction

情報

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

public enum ConvertErrorAction  

フィールド

  • Delete = 0
  • None = 1

Namespace: Documentize
Assembly: Documentize.dll

Enum ConvertSoftMaskAction

情報

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

public enum ConvertSoftMaskAction

フィールド

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

Namespace: Documentize Assembly: Documentize.dll

Enum DataType

情報

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

public enum DataType

フィールド

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

Namespace: Documentize Assembly: Documentize.dll

Enum DocConversionMode

情報

出力ドキュメントの変換モードを定義します。

public enum DocConversionMode

フィールド

  • Flow = 1: フル認識モードで、エンジンはグループ化と多階層分析を実行して、元のドキュメント作成者の意図を復元し、最大限に編集可能なドキュメントを生成します。欠点は、出力ドキュメントが元のPDFファイルとは異なる見た目になる可能性があることです。
  • TextBox = 0: このモードは高速で、PDFファイルの元の外観を最大限に保持するのに適していますが、結果として得られるドキュメントの編集可能性は制限される可能性があります。元のPDFファイルの視覚的にグループ化された各テキストブロックは、結果のドキュメントのテキストボックスに変換されます。これにより、出力ドキュメントは元のPDFファイルに最大限に類似します。出力ドキュメントは見栄えが良いですが、完全にテキストボックスで構成されており、Microsoft Wordでのさらなる編集がかなり難しくなる可能性があります。これがデフォルトモードです。

Namespace: Documentize Assembly: Documentize.dll

Enum HtmlMediaType

情報

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

public enum HtmlMediaType

フィールド

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

Namespace: Documentize Assembly: 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を保存

Namespace: Documentize Assembly: Documentize.dll

Enum PdfToXlsOptions.ExcelFormat

情報

xls/xlsx/xml/csvファイル形式を指定することを可能にします。デフォルト値はXLSXです。

xls/xlsx/xml/csvファイル形式を指定することを可能にします。 デフォルト値はXLSXです。

public enum PdfToXlsOptions.ExcelFormat

フィールド

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

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

Enum Role

情報

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

public enum Role

フィールド

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

Namespace: Documentize Assembly: Documentize.dll

Enum Rotation

情報

可能な回転値の列挙。

public enum Rotation

フィールド

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

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

Enum TextFormattingMode

情報

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

public enum TextFormattingMode

フィールド

  • Flatten = 2: PDF コンテンツをテキストフラグメントの座標によって位置づけて表現します。基本的には「Raw」モードに似ています。しかし、「Raw」はドキュメント内のテキストフラグメント(オペレーター)の構造を保持することに重点を置くのに対し、「Flatten」はテキストが読み取られる順序を保持することに重点を置いています。
  • Pure = 0: PDF テキストコンテンツをいくつかのフォーマットルーチンで表現します。これには、相対的な位置を考慮し、テキストをページの幅に合わせるために余分なスペースを追加することが含まれます。
  • Raw = 1: PDF コンテンツをそのまま、すなわちフォーマットなしで表現します。

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

Enum TiffColorDepth

情報

Documentize.PdfToTiffOptionsのカラー深度を指定するために使用されます。

public enum TiffColorDepth

フィールド

  • Format1bpp = 4: 1ピクセルあたり1ビット。
  • Format24bpp = 1: 1ピクセルあたり24ビット。Rgb。
  • Format32bpp = 0: 1ピクセルあたり32ビット。デフォルトで使用されます。
  • Format4bpp = 3: 1ピクセルあたり4ビット。
  • Format8bpp = 2: 1ピクセルあたり8ビット。

Namespace: Documentize Assembly: Documentize.dll

Enum TiffCompression

情報

Documentize.PdfToTiffOptionsの圧縮タイプを指定するために使用されます。

public enum TiffCompression

フィールド

  • CCITT3 = 2: CCITT3圧縮スキームを指定します。圧縮カテゴリに属するパラメータとしてCCITT3エンコーダに渡すことができます。
  • CCITT4 = 1: CCITT4圧縮スキームを指定します。圧縮カテゴリに属するパラメータとしてCCITT4エンコーダに渡すことができます。
  • LZW = 0: LZW圧縮スキームを指定します。圧縮カテゴリに属するパラメータとしてTiffエンコーダに渡すことができます。
  • None = 4: 圧縮なしを指定します。圧縮カテゴリに属するパラメータとしてTiffエンコーダに渡すことができます。
  • RLE = 3: RLE圧縮スキームを指定します。圧縮カテゴリに属するパラメータとしてRLEエンコーダに渡すことができます。

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

Interface IData

情報

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

public interface IData

Properties

DataType

データソースの種類。

DataType DataType { get; }

Property Value

DataType

Namespace: Documentize Assembly: Documentize.dll

Interface IDataSource

情報

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

public interface IDataSource

プロパティ

DataType

データソースのタイプ。

DataType DataType { get; }

プロパティの値

DataType

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

Interface IHaveInput

情報

オプションが実装すべき入力データを定義する汎用データインターフェースです。

public interface IHaveInput

プロパティ

Input

入力データを取得または設定します。

IData Input { get; set; }

プロパティの値

IData

Namespace: Documentize Assembly: Documentize.dll

Interface 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

Interface IPluginOptions

情報

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

public interface IPluginOptions

Namespace: Documentize Assembly: Documentize.dll

クラス Security

情報

Documentize.Security プラグインを表します。PDF ドキュメントを暗号化および復号化するために使用されます。

[Obsolete("このクラスはまもなく削除されます。PdfSecurity クラスを使用してください。")]
public static class Security

継承

objectSecurity

継承されたメンバー

メソッド

Process(EncryptOptions)

PDF ドキュメントを暗号化します。

public static ResultContainer Process(EncryptOptions options)

パラメータ

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

戻り値

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

例外

ArgumentException

オプションが設定されていない場合。

Process(DecryptOptions)

PDF ドキュメントを復号化します。

public static ResultContainer Process(DecryptOptions options)

パラメータ

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

戻り値

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

例外

ArgumentException

オプションが設定されていない場合。

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

クラス メッセージ

情報

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

public class Message

継承

objectMessage

継承されたメンバー

コンストラクター

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

クラスシグネチャ

情報

Documentize.Signatureプラグインを表します。PDF文書に署名するために使用されます。

[Obsolete("The class will be deleted soon. Please use PdfSecurity class.")]
public static class Signature

継承

objectSignature

継承されたメンバー

メソッド

Process(SignOptions)

PDF文書に署名します。

public static ResultContainer Process(SignOptions options)

パラメーター

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

戻り値

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

例外

ArgumentException

オプションが設定されていない場合。

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

クラスの使用法

情報

補完リクエストの使用統計。

public class Usage

継承

objectUsage

継承されたメンバー

コンストラクター

Usage()

public Usage()

プロパティ

CompletionTokens

生成された補完のトークン数。

[JsonProperty("completion_tokens")]
public int CompletionTokens { get; set; }

プロパティの値

int

PromptTokens

プロンプトに含まれるトークン数。

[JsonProperty("prompt_tokens")]
public int PromptTokens { get; set; }

プロパティの値

int

TotalTokens

リクエストで使用されたトークンの総数(プロンプト + 補完)。

[JsonProperty("total_tokens")]
public int TotalTokens { get; set; }

プロパティの値

int

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

クラスの選択

情報

チャット完了の選択。

public class Choice

継承

objectChoice

継承メンバー

コンストラクタ

Choice()

public Choice()

プロパティ

FinishReason

モデルがトークンの生成を停止した理由。 これは、モデルが自然な停止点に達した場合や 提供された停止シーケンスに達した場合、リクエストで指定されたトークンの最大数に達した場合に停止します。

[JsonProperty("finish_reason")]
public string FinishReason { get; set; }

プロパティ値

string

Index

選択肢のリスト内の選択肢のインデックス。

[JsonProperty("index")]
public int Index { get; set; }

プロパティ値

int

Message

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

[JsonProperty("message")]
public Message Message { get; set; }

プロパティ値

Message

名前空間: 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

 日本語