Documentize Namespace

クラス

クラス名説明
AddTimestampOptionsDocumentize.Timestamp プラグインの Add 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 つの入力データで実行する操作の基本オプションを表します。
OptionsWithInputAndOutputPageInfo ページ情報を表します。
PageSizePDF 文書内のページサイズを表すクラスです。
PdfAConverterPDF 文書を PDF/A 形式に変換し、PDF/A 準拠性を検証するプラグインを表します。
PdfAOptionsBaseDocumentize.PdfAConverter プラグインオプションの基底クラスです。PDF/A 変換および検証プロセスの設定プロパティとメソッドを提供します。
PdfAValidateOptionsDocumentize.PdfConverter プラグインで PDF 文書の 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 文書を単一の 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 プラグインの回転オプションを表します。
SanitizeOptionsSecurity Documentize.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

継承

objectPluginBaseOptionsCompressOptions

実装

継承されたメンバー

コンストラクター

CompressOptions()

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

public CompressOptions()

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

継承

object
PluginBaseOptions
ExtractFormDataToDsvOptions

実装

継承メンバー

コンストラクター

ExtractFormDataToDsvOptions(char, bool)

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

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

パラメーター

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

プロパティ

AddFieldName

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

public bool AddFieldName { get; set; }

プロパティの値

bool

Delimiter

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

public char Delimiter { get; set; }

プロパティの値

char

Namespace: Documentize
Assembly: Documentize.dll

Class ExtractImagesOptions

情報

Documentize.PdfExtractor コンポーネント用の画像抽出オプションを表します。

public sealed class ExtractImagesOptions : PluginBaseOptions, IPluginOptions

継承

objectPluginBaseOptionsExtractImagesOptions

実装

継承されたメンバー

コンストラクタ

ExtractImagesOptions()

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

public ExtractImagesOptions()

名前空間: Documentize アセンブリ: 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 inputData)

パラメーター

  • inputData IData: 入力データ。

ExtractPropertiesOptions(string)

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

public ExtractPropertiesOptions(string inputFile)

パラメーター

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

ExtractPropertiesOptions(Stream)

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

public ExtractPropertiesOptions(Stream inputStream)

パラメーター

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

プロパティ

Input

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

public override IData Input { get; set; }

プロパティ値

IData

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

Class ExtractTextOptions

情報

Documentize.PdfExtractor コンポーネントのテキスト抽出オプションを表します。

public sealed class ExtractTextOptions : OptionsWithInput, IHaveInput

Inheritance

objectOptionsWithInputExtractTextOptions

Implements

Inherited Members

Constructors

ExtractTextOptions(TextFormattingMode)

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

public ExtractTextOptions(TextFormattingMode formattingMode = TextFormattingMode.Raw)

Parameters

ExtractTextOptions(IData, TextFormattingMode)

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

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

Parameters

ExtractTextOptions(string, TextFormattingMode)

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

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

Parameters

ExtractTextOptions(Stream, TextFormattingMode)

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

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

Parameters

Properties

FormattingMode

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

public TextFormattingMode FormattingMode { get; set; }

Property Value

TextFormattingMode

Input

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

public override IData Input { get; set; }

Property Value

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("The class will be deleted soon. Please use PdfExtractor class.")]
public static class ImageExtractor

Inheritance

objectImageExtractor

Inherited Members

Methods

Process(ExtractImagesOptions)

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

public static ResultContainer Process(ExtractImagesOptions options)

Parameters

Returns

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

Exceptions

ArgumentException

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

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

フィールドの値

string

Product

製品名。

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

Inheritance

objectOptionsWithInput

Derived

Implements

Inherited Members

Fields

  • input

Field Value

IData

Properties

Input

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

public virtual IData Input { get; set; }

Property Value

IData

Namespace: Documentize Assembly: Documentize.dll

Class OptionsWithInputAndOutput

public abstract class OptionsWithInputAndOutput : OptionsWithInput, IHaveInput

継承

objectOptionsWithInputOptionsWithInputAndOutput

派生

実装

継承されたメンバー

フィールド

  • 出力

フィールドの値

IData

プロパティ

Output

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

public virtual IData Output { 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

情報

Documentize.PdfConverter コンポーネントを表します。PDF ドキュメントを DOCX/DOC、XLSX/XLS/CSV/XLSM/ODS、HTML、JPEG、PNG、TIFF、PDF/A などの他の形式に変換するために使用します。また、PDF/A の検証や HTML を PDF に変換することも可能です。

Documentize.PdfConverter コンポーネントを表します。PDF ドキュメントを DOCX/DOC、XLSX/XLS/CSV/XLSM/ODS、HTML、JPEG、PNG、TIFF、PDF/A などの他の形式に変換するために使用します。 また、PDF/A の検証や HTML を PDF に変換することも可能です。

public static class PdfConverter

Inheritance

objectPdfConverter

Inherited Members

メソッド

Convert(PdfToDocOptions)

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

public static ResultContainer Convert(PdfToDocOptions options)

パラメーター

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

戻り値

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

PDF ドキュメントを Doc 形式に変換する例です。

// 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);

Mode を設定して PDF ドキュメントを Doc 形式に変換する例です。

// 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);

例外

ArgumentException

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

Convert(PdfToXlsOptions)

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

public static ResultContainer Convert(PdfToXlsOptions options)

パラメーター

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

戻り値

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

PDF を XLSX ドキュメントに変換する例です。

// 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);

PDF を XLS ドキュメントに変換する例です。

// 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);

例外

ArgumentException

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

Convert(PdfToHtmlOptions)

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

public static ResultContainer Convert(PdfToHtmlOptions options)

パラメーター

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

戻り値

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

PDF を HTML ドキュメントに変換する例です。

// 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);

例外

ArgumentException

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

Convert(HtmlToPdfOptions)

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

public static ResultContainer Convert(HtmlToPdfOptions options)

パラメーター

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

戻り値

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

HTML を PDF ドキュメントに変換する例です。

// 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);

例外

ArgumentException

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

Convert(PdfToJpegOptions)

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

public static ResultContainer Convert(PdfToJpegOptions options)

パラメーター

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

戻り値

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

PDF ドキュメントを JPEG 形式に変換する例です。

// 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);

ページ、解像度、品質を設定して PDF ドキュメントを JPEG 形式に変換する例です。

// 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);

PDF ドキュメントをストリームに変換する例です。

// 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();
}

例外

ArgumentException

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

Convert(PdfToPngOptions)

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

public static ResultContainer Convert(PdfToPngOptions options)

パラメーター

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

戻り値

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

PDF ドキュメントを PNG 形式に変換する例です。

// 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);

1 ページだけを PNG 形式に変換する例です。

// 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);

PDF ドキュメントをストリームに変換する例です。

// 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();
}

例外

ArgumentException

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

Convert(PdfToTiffOptions)

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

public static ResultContainer Convert(PdfToTiffOptions options)

パラメーター

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

戻り値

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

PDF ドキュメントを TIFF 形式に変換する例です。

// 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);

ページと DPI をカスタマイズして PDF ドキュメントを TIFF 形式に変換する例です。

// 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);

PDF ドキュメントをマルチページ TIFF として変換する例です。

// 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);

圧縮方式とカラーデプスを設定して PDF ドキュメントを TIFF 形式に変換する例です。

// 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);

PDF ドキュメントをストリームに変換する例です。

// 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();
}

例外

ArgumentException

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

Convert(PdfToPdfAOptions)

PDF ドキュメントを PDF/A 形式に変換します.

public static ResultContainer Convert(PdfToPdfAOptions options)

パラメーター

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

戻り値

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

PDF ドキュメントを PDF/A 形式(この例では PDF/A-3b)に変換する例です。

// 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);

例外

ArgumentException

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

Validate(PdfAValidateOptions)

PDF ドキュメントが指定された PDF/A 形式に準拠しているかをチェックします.

public static ResultContainer Validate(PdfAValidateOptions options)

パラメーター

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

戻り値

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

PDF ドキュメントが PDF/A 形式(この例では PDF/A-1a)に準拠しているか検証する例です。

// 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
}

例外

ArgumentException

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

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

継承

object
PdfExtractor

継承されたメンバー

メソッド

Extract(ExtractTextOptions)

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

public static string Extract(ExtractTextOptions options)

パラメーター

戻り値

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

この例は PDF ファイルからテキスト コンテンツを抽出する方法を示します。

// Create ExtractTextOptions object to set input file path
var options = new ExtractTextOptions("path_to_your_pdf_file.pdf");
// Perform the process and get the extracted text
var textExtracted = PdfExtractor.Extract(options);

この例は PDF ストリームからテキスト コンテンツを抽出する方法を示します。

// Create ExtractTextOptions object to set input stream
var stream = File.OpenRead("path_to_your_pdf_file.pdf");
var options = new ExtractTextOptions(stream);
// Perform the process and get the extracted text
var textExtracted = PdfExtractor.Extract(options);

この例は TextFormattingMode を指定して PDF ドキュメントのテキストを抽出する方法を示します。

// Create ExtractTextOptions object to set input file path and TextFormattingMode
var options = new ExtractTextOptions("path_to_your_pdf_file.pdf", TextFormattingMode.Pure);
// Perform the process and get the extracted text
var textExtracted = PdfExtractor.Extract(options);

この例は最も簡潔な形で PDF ファイルからテキストを抽出する方法を示します。

// Perform the process and get the extracted text
var textExtracted = PdfExtractor.Extract(new ExtractTextOptions("path_to_your_pdf_file.pdf", TextFormattingMode.Pure));

例外

ArgumentException

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

Extract(ExtractImagesOptions)

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

public static ResultContainer Extract(ExtractImagesOptions options)

パラメーター

戻り値

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

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

// Create ExtractImagesOptions to set instructions
var options = new ExtractImagesOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_results_directory"));
// Perform the process
var results = PdfExtractor.Extract(options);
// Get path to image result
var imageExtracted = results.ResultCollection[0].ToFile();

この例はフォルダーを使用せずにストリームへ画像を抽出する方法を示します。

// Create ExtractImagesOptions to set instructions
var options = new ExtractImagesOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Not set output - it will write results to streams
// Perform the process
var results = PdfExtractor.Extract(options);
// Get Stream
var ms = results.ResultCollection[0].ToStream();
// Copy data to file for demo
ms.Seek(0, SeekOrigin.Begin);
using (var fs = File.Create("test_file.png"))
{
    ms.CopyTo(fs);
}

例外

ArgumentException

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

Extract(ExtractFormDataToDsvOptions)

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

public static ResultContainer Extract(ExtractFormDataToDsvOptions options)

パラメーター

戻り値

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

この例はフォーム値を CSV ファイルへエクスポートする方法を示します。

// 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
PdfExtractor.Extract(options);

この例はフォーム値を TSV ファイルへエクスポートし、プロパティを設定する方法を示します。

// 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
PdfExtractor.Extract(options);

例外

ArgumentException

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

Extract(ExtractPropertiesOptions)

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

public static PdfProperties Extract(ExtractPropertiesOptions options)

パラメーター

戻り値

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

この例は PDF ファイルから以下のプロパティ(FileName、Title、Author、Subject、Keywords、Created、Modified、Application、PDF Producer、ページ数)を抽出する方法を示します。

// Create ExtractPropertiesOptions object to set input file
var options = new ExtractPropertiesOptions("path_to_your_pdf_file.pdf");
// Perform the process and get Properties
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 ストリームから同様のプロパティを抽出する方法を示します。

// Create ExtractPropertiesOptions object to set input stream
var stream = File.OpenRead("path_to_your_pdf_file.pdf");
var options = new ExtractPropertiesOptions(stream);
// Perform the process and get Properties
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 ファイルからプロパティを抽出する方法を示します。

// Perform the process and get Properties
var pdfProperties = PdfExtractor.Extract(new ExtractPropertiesOptions("path_to_your_pdf_file.pdf"));

例外

ArgumentException

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

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

Class PdfForm

情報

Documentize.PdfForm コンポーネントを表します。Flatten、フォームデータの抽出に使用します。また、フィールド名の取得も可能です。

Documentize.PdfForm コンポーネントを表します。Flatten、フォームデータの抽出に使用します。
また、フィールド名の取得も可能です。

public static class PdfForm

継承

object
PdfForm

継承されたメンバー

メソッド

Extract(ExtractFormDataToDsvOptions)

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

public static ResultContainer Extract(ExtractFormDataToDsvOptions options)

パラメータ

戻り値

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

この例は、フォームの値を CSV ファイルにエクスポートする方法を示しています。

// 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);

この例は、フォームの値を TSV ファイルにエクスポートし、プロパティを設定する方法を示しています。

// 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);

例外

ArgumentException

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

Flatten(FlattenFieldsOptions)

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

public static ResultContainer Flatten(FlattenFieldsOptions options)

パラメータ

戻り値

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

この例は、PDF ファイル内のフィールドをフラット化する方法を示しています。

// 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);

この例は、PDF ファイル内のフィールドをフラット化し、最初のフィールドをスキップする方法を示しています。

// 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);

例外

ArgumentException

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

GetNames(GetFieldNamesOptions)

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

public static List<string> GetNames(GetFieldNamesOptions options)

パラメータ

戻り値

List<string>

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

この例は、PDF ファイルからフィールド名を取得する方法を示しています。

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

Remove(RemoveFieldsOptions) : PDF ドキュメントからフィールドを削除します。

public static ResultContainer Remove(RemoveFieldsOptions options)

パラメータ

戻り値

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

この例は、PDF ファイルからフィールドを削除する方法を示しています。

// 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);

例外

ArgumentException

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

Namespace: Documentize
Assembly: Documentize.dll

Class PdfManager

情報

Documentize.PdfManager コンポーネントを表します。PDF ドキュメントの統合、分割、最適化、回転、リサイズ、圧縮、テーブル追加、目次追加に使用できます。複数の PDF ドキュメントを単一の PDF に統合できます。PDF ドキュメントを個別のページに分割できます。PDF ドキュメントを最適化、回転、リサイズ、圧縮できます。PDF ドキュメントのページを回転、リサイズできます。PDF ドキュメントにテーブルを追加できます。PDF ドキュメントに目次を追加できます。

Documentize.PdfManager コンポーネントを表します。PDF ドキュメントの統合、分割、最適化、回転、リサイズ、圧縮、テーブル追加、目次追加に使用できます。 複数の PDF ドキュメントを単一の PDF に統合できます。 PDF ドキュメントを個別のページに分割できます。 PDF ドキュメントを最適化、回転、リサイズ、圧縮できます。 PDF ドキュメントのページを回転、リサイズできます。 PDF ドキュメントにテーブルを追加できます。 PDF ドキュメントに目次を追加できます。

public static class PdfManager

Inheritance

objectPdfManager

Inherited Members

Methods

AddTable(TableOptions)

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

public static ResultContainer AddTable(TableOptions options)

Parameters

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

Returns

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

Examples

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

// 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);

この例は 2 ページの前にテーブルを追加する方法を示しています。

// 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

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

AddTableOfContents(TocOptions)

PDF ドキュメントに目次 (TOC) を追加します。

public static ResultContainer AddTableOfContents(TocOptions options)

Parameters

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

Returns

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

Examples

この例は 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
PdfManager.AddTableOfContents(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
PdfManager.AddTableOfContents(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
PdfManager.AddTableOfContents(options);

この例は目次の見出しをカスタマイズして PDF ファイルに目次を追加する方法を示しています。

// 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

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

Compress(CompressOptions)

PDF ドキュメントを圧縮します。サイズ削減を試みます。

public static ResultContainer Compress(CompressOptions options)

Parameters

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

Returns

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

Examples

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

// 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

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

CreatePdfByChatGptRequestAsync(ChatGptRequestOptions)

ChatGpt の応答から PDF ドキュメントを作成します。ChatGPT への直接リクエスト、または PDF ファイル ソースを追加して応答を出力ソースに保存するために使用します。

public static Task<resultcontainer> CreatePdfByChatGptRequestAsync(ChatGptRequestOptions options)

Parameters

Returns

Task<ResultContainer>

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

Examples

この例はメッセージをリクエストに追加して ChatGpt を使用する方法を示しています。

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.

この例はリクエストに 1 件のメッセージだけを追加して ChatGpt を使用する方法を示しています。

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.

この例はファイルをメッセージ ソースとして追加して Chat を使用する方法を示しています。

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)

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

public static ResultContainer Merge(MergeOptions options)

Parameters

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

Returns

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

Examples

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

// 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

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

Optimize(OptimizeOptions)

PDF ドキュメントを最適化します。 ドキュメントをリニアライズし、

  • 最初のページをできるだけ早く開く、
  • 次のページや次ページへのリンクをできるだけ早く表示する、
  • ページデータが遅いチャネルで届くときに、ページを段階的に表示し(最も有用なデータを先に表示)、
  • ページ全体が受信・表示される前でも、リンクをたどるといったユーザー操作を可能にする ことができます。
public static ResultContainer Optimize(OptimizeOptions options)

Parameters

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

Returns

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

Examples

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

// 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

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

Resize(ResizeOptions)

PDF ドキュメントのページをリサイズします。

public static ResultContainer Resize(ResizeOptions options)

Parameters

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

Returns

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

Examples

この例は PDF ドキュメントをリサイズする方法を示しています。

// 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

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

Rotate(RotateOptions)

PDF ドキュメントのページを回転します。

public static ResultContainer Rotate(RotateOptions options)

Parameters

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

Returns

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

Examples

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

// 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

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

Split(SplitOptions)

PDF ドキュメントをページごとに分割します。

public static ResultContainer Split(SplitOptions options)

Parameters

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

Returns

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

Examples

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

// 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

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

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

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

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

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

Sanitize(SanitizeOptions)

PDF ドキュメントから隠れたデータを除去し、メタデータ、注釈、JavaScript、プライベートコンテンツなどの機密情報や不要情報を削除または変換します。

public static ResultContainer Sanitize(SanitizeOptions options)

Parameters

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

Returns

ResultContainer : 操作結果を格納したオブジェクト。

Examples

例では PDF ドキュメントをサニタイズする方法を示します。

// Create SanitizeOptions object to set input and output files
var options = new SanitizeOptions("path_to_your_pdf_file.pdf", "path_to_result_pdf_file.pdf");
// Perform the process
PdfSecurity.Sanitize(options);

ストリーム間で PDF をサニタイズする例。

// Prepare input and output streams
using var inputStream = File.OpenRead("path_to_your_pdf_file.pdf");
using var outputStream = new MemoryStream();
// Create SanitizeOptions object to set input and output streams
var options = new SanitizeOptions(inputStream, outputStream);
// Perform the process
PdfSecurity.Sanitize(options);

ファイルからストリームへ PDF をサニタイズする例。

// Prepare output stream
using var outputStream = new MemoryStream();
// Create SanitizeOptions object to set input and output streams
var options = new SanitizeOptions("path_to_your_pdf_file.pdf", outputStream);
// Perform the process
PdfSecurity.Sanitize(options);

手動で入力と出力プロパティを設定してサニタイズする例。

// Create SanitizeOptions object
var options = new SanitizeOptions();
//Set Input file
options.Input = new FileData("path_to_your_pdf_file.pdf");
//Set Output file
options.Output = new FileData("path_to_result_pdf_file.pdf");
// Perform the process
PdfSecurity.Sanitize(options);

メタデータを削除せずにサニタイズする例。

// Create SanitizeOptions object to set input and output files
var options = new SanitizeOptions("path_to_your_pdf_file.pdf", "path_to_result_pdf_file.pdf");
options.RemoveMetadata = false;
// Perform the process
PdfSecurity.Sanitize(options);

添付ファイルを削除せずにサニタイズする例。

// Create SanitizeOptions object to set input and output files
var options = new SanitizeOptions("path_to_your_pdf_file.pdf", "path_to_result_pdf_file.pdf");
options.RemoveAttachments = false;
// Perform the process
PdfSecurity.Sanitize(options);

すべてのページを画像に変換し、DPI を設定してサニタイズする例。

// Create SanitizeOptions object to set input and output files
var options = new SanitizeOptions("path_to_your_pdf_file.pdf", "path_to_result_pdf_file.pdf");
// Turn on conversion and set dpi
options.ConvertPagesToImages = true;
options.ImageDpi = 200;
// Perform the process
PdfSecurity.Sanitize(options);

JavaScript とアクションを削除せずにサニタイズする例。

// Create SanitizeOptions object to set input and output files
var options = new SanitizeOptions("path_to_your_pdf_file.pdf", "path_to_result_pdf_file.pdf");
options.RemoveJavaScriptsAndActions = false;
// Perform the process
PdfSecurity.Sanitize(options);

最短形式で PDF ファイルをサニタイズする例。

// Perform the process
PdfSecurity.Sanitize(new SanitizeOptions("path_to_your_pdf_file.pdf", "path_to_result_pdf_file.pdf"));

Exceptions

ArgumentException

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

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 ファイルのストリームを使用して署名する例。

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);

不可視署名で署名する例。

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);

追加オプションを使用して署名する例。

// 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);

タイムスタンプ付きで署名する例。

// 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"));
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Sign(options);

Exceptions

ArgumentException

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

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

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

public List<idata> Inputs { get; }

Property Value

List<IData>

Outputs

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

public List<idata> Outputs { get; }

Property Value

List<IData>

Methods

AddInput(IData)

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

public void AddInput(IData data)

Parameters

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

AddOutput(IData)

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

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 SanitizeOptions

public class SanitizeOptions : OptionsWithInputAndOutput, IHaveInput

継承

objectOptionsWithInputOptionsWithInputAndOutputSanitizeOptions

実装

継承されたメンバー

コンストラクター

SanitizeOptions()

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

public SanitizeOptions()

SanitizeOptions(IData, IData)

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

public SanitizeOptions(IData inputData, IData outputData = null)

パラメーター

  • inputData IData: 入力データ。
  • outputData IData: 出力データ。

SanitizeOptions(string, string)

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

public SanitizeOptions(string inputFile, string outputFile)

パラメーター

  • inputFile string: 入力ファイルのパス。
  • outputFile string: 出力ファイルのパス。

SanitizeOptions(Stream, Stream)

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

public SanitizeOptions(Stream inputStream, Stream outputStream)

パラメーター

  • inputStream Stream: 入力ストリーム。
  • outputStream Stream: 出力ストリーム。

SanitizeOptions(string, Stream)

指定された入力ファイルと出力ストリームで Documentize.SanitizeOptions オブジェクトの新しいインスタンスを初期化します。

public SanitizeOptions(string inputFile, Stream outputStream)

パラメーター

  • inputFile string: 入力ファイルのパス。
  • outputStream Stream: 出力ストリーム。

SanitizeOptions(Stream, string)

指定された入力ストリームと出力ファイルで Documentize.SanitizeOptions オブジェクトの新しいインスタンスを初期化します。

public SanitizeOptions(Stream inputStream, string outputFile)

パラメーター

  • inputStream Stream: 入力ストリーム。
  • outputFile string: 出力ファイルのパス。

プロパティ

ConvertPagesToImages

ページを画像に変換するオプションを取得または設定します。
ページを画像に変換する処理は、他のオプションで制御されるメインの隠しデータのクリア後に実行されます。

public bool ConvertPagesToImages { get; set; }

プロパティ値

bool

FlattenForms

文書内のフォームをサニタイズ処理中にフラット化するかどうかを示す値を取得または設定します。
フォームのフラット化は、インタラクティブなフォームフィールドを静的なコンテンツに変換し、編集不可能または記入不能にします。

public bool FlattenForms { get; set; }

プロパティ値

bool

FlattenLayers

PDF 文書内のレイヤーをフラット化するオプションを取得または設定します。
有効にすると、文書内のすべてのレイヤーが単一のレイヤーに統合され、個別の構造が除去されます。
このオプションは、レイヤー内に隠されたデータが残らないように文書を簡素化してサニタイズする際に便利です。

public bool FlattenLayers { get; set; }

プロパティ値

bool

ImageDpi

ページを画像に変換する際のページ画像の解像度を取得または設定します。
Documentize.SanitizeOptions.ConvertPagesToImages プロパティが true の場合に有効です。

public int ImageDpi { get; set; }

プロパティ値

int

Input

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

public override IData Input { get; set; }

プロパティ値

IData

Output

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

public override IData Output { get; set; }

プロパティ値

IData

RemoveAnnotations

文書から注釈を除去するかどうかを示す値を取得または設定します。
有効にすると、サニタイズ処理中に文書内のすべての注釈が削除され、注釈の赤字処理が適用されます。

public bool RemoveAnnotations { get; set; }

プロパティ値

bool

RemoveAttachments

文書からすべての添付ファイルを除去するオプションを取得または設定します。
有効にすると、PDF 内の添付ファイルがサニタイズ処理中に確実に削除されます。

public bool RemoveAttachments { get; set; }

プロパティ値

bool

RemoveJavaScriptsAndActions

文書から JavaScript および関連アクションを除去するかどうかを示す値を取得または設定します。
埋め込まれたスクリプトによってもたらされる潜在的なセキュリティ脆弱性を排除するのに役立ちます。

public bool RemoveJavaScriptsAndActions { get; set; }

プロパティ値

bool

RemoveMetadata

文書からメタデータを除去するオプションを取得または設定します。
true に設定すると、文書プロパティや追加の埋め込みメタデータ情報など、メタデータがサニタイズ時に削除されます。

public bool RemoveMetadata { get; set; }

プロパティ値

bool

RemoveSearchIndexAndPrivateInfo

検索インデックスとプライベート情報を文書から除去するかどうかを示す値を取得または設定します。
埋め込まれた検索インデックスやプライベートデータの除去を有効にし、文書のセキュリティとプライバシーを向上させます。

public bool RemoveSearchIndexAndPrivateInfo { get; set; }

プロパティ値

bool

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

パラメータ

戻り値

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

例外

ArgumentException

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

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

Fields

  • 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

Properties

Data

生データを取得します。

object Data { get; }

Property Value

object

IsFile

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

bool IsFile { get; }

Property Value

bool

IsStream

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

bool IsStream { get; }

Property Value

bool

IsString

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

bool IsString { get; }

Property Value

bool

Methods

ToFile()

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

string ToFile()

Returns

string : 結果がファイルの場合は出力ファイルへのパスを表す文字列を返します。ファイルでない場合は null

ToStream()

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

Stream ToStream()

Returns

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

 日本語