Documentize Namespaceのサブセクション
Class AddTimestampOptions
情報
Documentize.Timestamp プラグインの Add Timestamp オプションを表します。
[Obsolete("The class will be deleted soon. Please use SignOptions class.")]
public class AddTimestampOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
AddTimestampOptions
実装
継承メンバー
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
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” の形式で結合した文字列です。(オプション)。
Class ChatCompletion
情報
提供された入力に基づいてモデルから返されるチャット完了レスポンスを表します。
public class ChatCompletion
継承
object ←
ChatCompletion
継承されたメンバー
コンストラクタ
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
Class ChatGptConsts
public static class ChatGptConsts
継承
object ←
ChatGptConsts
継承されたメンバー
フィールド
フィールドの値
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
Class ChatGptRequestOptions
情報
Documentize.PdfManager プラグインのオプションを表します。
public class ChatGptRequestOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
ChatGptRequestOptions
実装
継承されたメンバー
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
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>
オプションに複数のメッセージを追加する場合、メッセージコレクション内の順序は次のとおりです:
- 最初のメッセージ(存在する場合)は 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
Class CompressOptions
情報
Documentize.PdfManager プラグインの圧縮オプションを表します。
public sealed class CompressOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
CompressOptions
実装
継承されたメンバー
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
CompressOptions()
Documentize.CompressOptions オブジェクトの新しいインスタンスを既定のオプションで初期化します。
Class DecryptionOptions
情報
Documentize.Securityプラグインの復号化オプションを表します。
public class DecryptionOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
DecryptionOptions
実装
継承メンバー
- PluginBaseOptions.AddInput(IDataSource),
- PluginBaseOptions.AddOutput(IDataSource),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
DecryptionOptions(string)
デフォルトオプションを使用してDocumentize.DecryptionOptionsオブジェクトの新しいインスタンスを初期化します。
public DecryptionOptions(string ownerPassword)
パラメーター
ownerPassword string: オーナーパスワード。
プロパティ
OwnerPassword
オーナーパスワード。
public string OwnerPassword { get; set; }
プロパティ値
string
Class DecryptOptions
情報
Documentize.PdfSecurity プラグインの復号オプションを表します。
public class DecryptOptions : PluginBaseOptions, IPluginOptions
Inheritance
object ←
PluginBaseOptions ←
DecryptOptions
Implements
Inherited Members
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
Constructors
DecryptOptions(string)
Documentize.DecryptOptions オブジェクトをデフォルトオプションで新しく初期化します。
public DecryptOptions(string ownerPassword)
Parameters
ownerPassword string: 所有者パスワード。
Properties
OwnerPassword
所有者パスワード。
public string OwnerPassword { get; set; }
Property Value
string
Class DirectoryData
情報
ロードおよび保存操作のためのディレクトリ データを表します。
public sealed class DirectoryData : IData
継承
object ←
DirectoryData
実装
継承されたメンバー
コンストラクター
DirectoryData(string)
指定されたパスで新しいディレクトリ データを初期化します。
public DirectoryData(string path)
パラメーター
path string: ディレクトリへのパスを表す文字列。
プロパティ
DataType
データ ソースの種類。
public DataType DataType { get; }
プロパティの値
DataType
Path
現在のデータのディレクトリへのパスを取得します。
public string Path { get; }
プロパティの値
string
Class DirectoryDataSource
情報
プラグインのロードおよび保存操作のためのディレクトリデータを表します。
public sealed class DirectoryDataSource : IDataSource
継承
object ←
DirectoryDataSource
実装
継承メンバー
コンストラクター
DirectoryDataSource(string)
指定されたパスで新しいディレクトリデータを初期化します。
public DirectoryDataSource(string path)
パラメーター
path string: ディレクトリへのパスを表す文字列。
プロパティ
DataType
データソースの種類。
public DataType DataType { get; }
プロパティ値
DataType
Path
現在のデータのディレクトリへのパスを取得します。
public string Path { get; }
プロパティ値
string
Class DocConverter
情報
Documentize.DocConverter プラグインを表します。PDF ドキュメントを DOC/DOCX 形式に変換するために使用されます。
[Obsolete("このクラスはまもなく削除されます。PdfConverter クラスを使用してください。")]
public static class DocConverter
継承
object ←
DocConverter
継承されたメンバー
メソッド
Process(PdfToDocOptions)
PDF ドキュメントを DOC/DOCX 形式に変換します。
public static ResultContainer Process(PdfToDocOptions options)
パラメーター
戻り値
ResultContainer : 操作の結果を含むオブジェクト。
例外
ArgumentException
オプションが設定されていない場合。
Class EncryptionOptions
情報
Documentize.Securityプラグインの暗号化オプションを表します。
public class EncryptionOptions : PluginBaseOptions, IPluginOptions
Inheritance
object ←
PluginBaseOptions ←
EncryptionOptions
Implements
Inherited Members
- PluginBaseOptions.AddInput(IDataSource),
- PluginBaseOptions.AddOutput(IDataSource),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
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
Class EncryptOptions
情報
Documentize.PdfSecurity プラグインの暗号化オプションを表します。
public class EncryptOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
EncryptOptions
実装
継承されたメンバー
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
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
情報
Documentize.PdfForm と Documentize.PdfExtractor プラグインのフィールドのエクスポート値のオプションを表します。
public sealed class ExtractFormDataToDsvOptions : PluginBaseOptions, IPluginOptions
Inheritance
object ←
PluginBaseOptions ←
ExtractFormDataToDsvOptions
Implements
Inherited Members
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
Constructors
Documentize.ExtractFormDataToDsvOptions オブジェクトの新しいインスタンスを初期化します。
public ExtractFormDataToDsvOptions(char delimiter = ',', bool addFieldNames = false)
Parameters
delimiter char: エクスポートされたデータの値間で使用する区切り文字を指定します。デフォルト値は ‘,’ です。addFieldNames bool: 値の前にフィールド名を追加します。形式: 名前 + 区切り文字 + 値 + 区切り文字。
Properties
値の前にフィールド名を追加します。形式: 名前 + 区切り文字 + 値 + 区切り文字。
public bool AddFieldName { get; set; }
Property Value
bool
エクスポートされた値に使用される区切り文字です。
public char Delimiter { get; set; }
Property Value
char
情報
Documentize.PdfExtractor プラグインの画像抽出オプションを表します。
public sealed class ExtractImagesOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
ExtractImagesOptions
実装
継承されたメンバー
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
Documentize.ExtractImagesOptions オブジェクトをデフォルトオプションで新しく初期化します。
public ExtractImagesOptions()
情報
Documentize.PdfExtractor プラグイン用の PDF プロパティ抽出オプションを表します。
public sealed class ExtractPropertiesOptions : OptionsWithInput, IHaveInput
継承
object ←
OptionsWithInput ←
ExtractPropertiesOptions
実装
継承されたメンバー
コンストラクター
Documentize.ExtractPropertiesOptions オブジェクトをデフォルトオプションで新しく初期化します。
public ExtractPropertiesOptions()
指定されたデータで Documentize.ExtractPropertiesOptions オブジェクトを新しく初期化します。
public ExtractPropertiesOptions(IData data)
パラメーター
指定されたファイルで Documentize.ExtractPropertiesOptions オブジェクトを新しく初期化します。
public ExtractPropertiesOptions(string file)
パラメーター
指定されたストリームで Documentize.ExtractPropertiesOptions オブジェクトを新しく初期化します。
public ExtractPropertiesOptions(Stream stream)
パラメーター
プロパティ
入力データを取得または設定します。
public override IData Input { get; set; }
プロパティの値
IData
情報
Documentize.PdfExtractor プラグインのテキスト抽出オプションを表します。
public sealed class ExtractTextOptions : OptionsWithInput, IHaveInput
継承
object ←
OptionsWithInput ←
ExtractTextOptions
実装
継承メンバー
コンストラクタ
指定されたテキスト書式設定モードに対して Documentize.ExtractTextOptions オブジェクトの新しいインスタンスを初期化します。
public ExtractTextOptions(TextFormattingMode formattingMode = TextFormattingMode.Raw)
パラメーター
指定されたデータで Documentize.ExtractTextOptions オブジェクトの新しいインスタンスを初期化します。
public ExtractTextOptions(IData data, TextFormattingMode formattingMode = TextFormattingMode.Raw)
パラメーター
指定されたファイルで Documentize.ExtractTextOptions オブジェクトの新しいインスタンスを初期化します。
public ExtractTextOptions(string file, TextFormattingMode formattingMode = TextFormattingMode.Raw)
パラメーター
指定されたストリームで Documentize.ExtractTextOptions オブジェクトの新しいインスタンスを初期化します。
public ExtractTextOptions(Stream stream, TextFormattingMode formattingMode = TextFormattingMode.Raw)
パラメーター
プロパティ
書式設定モードを取得または設定します。
public TextFormattingMode FormattingMode { get; set; }
プロパティ値
TextFormattingMode
入力データを取得または設定します。
public override IData Input { get; set; }
プロパティ値
IData
Class FileData
情報
ロードおよび保存操作のためのファイル データを表します。
public sealed class FileData : IData
継承
object ←
FileData
実装
継承されたメンバー
コンストラクター
FileData(string)
指定されたパスで新しいファイル データ ソースを初期化します。
public FileData(string path)
パラメーター
path string: ソース ファイルへのパスを表す文字列。
プロパティ
DataType
データ ソースのタイプ。
public DataType DataType { get; }
プロパティの値
DataType
Path
現在のデータのファイルへのパスを取得します。
public string Path { get; }
プロパティの値
string
Class FileDataSource
情報
プラグインのロードおよび保存操作に対するファイルデータを表します。
public sealed class FileDataSource : IDataSource
継承
object ←
FileDataSource
実装
継承メンバー
コンストラクタ
FileDataSource(string)
指定されたパスの新しいファイルデータソースを初期化します。
public FileDataSource(string path)
パラメータ
path string: ソースファイルへのパスを表す文字列。
プロパティ
DataType
データソースの種類。
public DataType DataType { get; }
プロパティの値
DataType
Path
現在のデータのファイルへのパスを取得します。
public string Path { get; }
プロパティの値
string
Class FileResult
public sealed class FileResult : IOperationResult
継承
object ←
FileResult
実装
継承メンバー
プロパティ
Data
生データを取得します。
public object Data { get; }
プロパティ値
object
IsFile
結果が出力ファイルへのパスであるかどうかを示します。
public bool IsFile { get; }
プロパティ値
bool
IsStream
結果が出力ストリームであるかどうかを示します。
public bool IsStream { get; }
プロパティ値
bool
IsString
結果がテキスト文字列であるかどうかを示します。
public bool IsString { get; }
プロパティ値
bool
メソッド
ToFile()
結果をファイルに変換しようとします。
戻り値
string : 結果がファイルである場合、出力ファイルへのパスを表す文字列。それ以外の場合は null。
ToStream()
結果をストリームオブジェクトに変換しようとします。
戻り値
Stream : 結果がストリームである場合、出力データを表すストリームオブジェクト。それ以外の場合は null。
Class FlattenFieldsOptions
情報
Documentize.PdfForm プラグインによるドキュメントのフィールドをフラット化するオプションを表します。
public class FlattenFieldsOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
FlattenFieldsOptions
実装
継承されたメンバー
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
FlattenFieldsOptions()
Documentize.FlattenFieldsOptions オブジェクトの新しいインスタンスを、デフォルトオプションで初期化します。
public FlattenFieldsOptions()
プロパティ
SkipFields
フラット化しないフィールドのリストです。
public List<string> SkipFields { get; set; }
プロパティの値
List<string>
情報
Documentize.FormExporter プラグインを表します。PDF ドキュメントのフォーム値を DSV または CSV ファイルにエクスポートするために使用されます。
[Obsolete("The class will be deleted soon. Please use PdfExtractor or PdfForm class.")]
public static class FormExporter
継承
object ←
FormExporter
継承されたメンバー
メソッド
指定されたパラメータで Documentize.FormExporter の処理を開始します。
public static ResultContainer Process(ExtractFormDataToDsvOptions options)
パラメータ
戻り値
ResultContainer : 操作の結果を含むオブジェクトです。
例外
ArgumentException
options が設定されていない場合。
情報
Documentize.FormExporterプラグインのフィールドの値をエクスポートするためのオプションを表します。
public sealed class FormExportToDsvOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
FormExportToDsvOptions
実装
継承されたメンバー
- PluginBaseOptions.AddInput(IDataSource),
- PluginBaseOptions.AddOutput(IDataSource),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクタ
Documentize.FormExportToDsvOptionsオブジェクトの新しいインスタンスを初期化します。
public FormExportToDsvOptions(char delimeter = ',', bool addFieldNames = false)
パラメーター
delimeter char: エクスポートされたデータの値の間で使用されるデリミターを指定します。デフォルト値は’,‘です。addFieldNames bool: 値の前にフィールド名を追加します。形式: 名前 + デリミター + 値 + デリミター。
プロパティ
値の前にフィールド名を追加します。
形式: 名前 + デリミター + 値 + デリミター。
public bool AddFieldName { get; set; }
プロパティの値
bool
エクスポートされた値に使用されるデリミター。
public char Delimeter { get; set; }
プロパティの値
char
情報
Documentize.FormFlattener プラグインを表します。PDF ドキュメントのフィールドをフラット化するために使用されます。
[Obsolete("The class will be deleted soon. Please use PdfForm class.")]
public static class FormFlattener
Inheritance
object ←
FormFlattener
Inherited Members
メソッド
PDF ドキュメント内のフィールド名を取得します。
public static List<string> GetFieldNames(string path)
Parameters
Returns
List<string>
PDF ドキュメント内の名前のリスト。
public static List<string> GetFieldNames(Stream stream)
Parameters
stream Stream: PDF ドキュメントを含むストリーム。
Returns
List<string>
PDF ドキュメント内の名前のリスト。
public static ResultContainer Process(FlattenFieldsOptions options)
Parameters
Returns
ResultContainer : 操作の結果を含むオブジェクト。
Exceptions
ArgumentException
オプションが設定されていない場合。
情報
Documentize.FormFlattener プラグインによるドキュメント内のフィールドをフラット化するためのオプションを表します。
public class FormFlattenerOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
FormFlattenerOptions
実装
継承メンバー
- PluginBaseOptions.AddInput(IDataSource),
- PluginBaseOptions.AddOutput(IDataSource),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
デフォルトのオプションで Documentize.FormFlattenerOptions オブジェクトの新しいインスタンスを初期化します。
public FormFlattenerOptions()
プロパティ
フラット化しないフィールドのリストです。
public List<string> SkipFields { get; set; }
プロパティの値
List<string>
Class GetFieldNamesOptions
情報
Documentize.PdfForm プラグインによるドキュメント内のフィールド名取得オプションを表します。
public class GetFieldNamesOptions
継承
object ←
GetFieldNamesOptions
継承されたメンバー
コンストラクター
GetFieldNamesOptions(string)
ファイルへの入力パスを使用したオプションのコンストラクターです。
public GetFieldNamesOptions(string path)
パラメーター
GetFieldNamesOptions(Stream)
ストリームを使用したオプションのコンストラクターです。
public GetFieldNamesOptions(Stream stream)
パラメーター
Class HtmlConverter
情報
Documentize.HtmlConverterプラグインを表します。PDFドキュメントをHTML形式に変換し、HTMLドキュメントをPDF形式に変換するために使用されます。
[Obsolete("このクラスは近日中に削除されます。PdfConverterクラスを使用してください。")]
public static class HtmlConverter
継承
object ←
HtmlConverter
継承メンバー
メソッド
Process(PdfToHtmlOptions)
PDFドキュメントをHTML形式に変換します。
public static ResultContainer Process(PdfToHtmlOptions options)
パラメータ
戻り値
ResultContainer : 操作の結果を含むオブジェクト。
例外
ArgumentException
オプションが設定されていない場合。
Process(HtmlToPdfOptions)
HTMLドキュメントをPDF形式に変換します。
public static ResultContainer Process(HtmlToPdfOptions options)
パラメータ
戻り値
ResultContainer : 操作の結果を含むオブジェクト。
例外
ArgumentException
オプションが設定されていない場合。
Class HtmlToPdfOptions
情報
Documentize.PdfConverter プラグイン用の HTML から PDF への変換オプションを表します。
public sealed class HtmlToPdfOptions : PluginBaseOptions, IPluginOptions
Inheritance
object ←
PluginBaseOptions ←
HtmlToPdfOptions
Implements
Inherited Members
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
Constructors
HtmlToPdfOptions()
Documentize.HtmlToPdfOptions オブジェクトの新しいインスタンスを初期化します。
public HtmlToPdfOptions()
Properties
BasePath
HTML ファイルのベース パス/URL を指定します。
public string BasePath { get; set; }
Property Value
string
レンダリング中に使用される可能性のあるメディア タイプを取得または設定します。
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
情報
Documentize.ImageExtractorプラグインを表します。PDFドキュメントから画像を抽出するために使用されます。
[Obsolete("このクラスはすぐに削除されます。PdfExtractorクラスを使用してください。")]
public static class ImageExtractor
継承
object ←
ImageExtractor
継承されたメンバー
メソッド
PDFドキュメントから画像を抽出します。
public static ResultContainer Process(ExtractImagesOptions options)
パラメーター
戻り値
ResultContainer : 操作の結果を含むオブジェクトです。
例外
ArgumentException
optionsが設定されていない場合。
情報
Documentize.ImageExtractorプラグイン用の画像抽出オプションを表します。
public sealed class ImageExtractorOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
ImageExtractorOptions
実装
継承されたメンバー
- PluginBaseOptions.AddInput(IDataSource),
- PluginBaseOptions.AddOutput(IDataSource),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
デフォルトオプションでDocumentize.ImageExtractorOptionsオブジェクトの新しいインスタンスを初期化します。
public ImageExtractorOptions()
Class Info
情報
このクラスは現在の製品ビルドに関する情報を提供します。
継承
object ←
Info
継承されたメンバー
フィールド
AssemblyVersion アセンブリ バージョン。
フィールドの値
string
製品
製品名。
public const string Product = "Documentize"
フィールドの値
string
Class JpegConverter
情報
Documentize.JpegConverter プラグインを表します。 PDF ドキュメントを JPEG 形式に変換するために使用されます。
[Obsolete("このクラスはまもなく削除されます。PdfConverter クラスを使用してください。")]
public static class JpegConverter
継承
object ←
JpegConverter
継承メンバー
メソッド
Process(PdfToJpegOptions)
PDF ドキュメントを JPEG 形式に変換します。
public static ResultContainer Process(PdfToJpegOptions options)
パラメーター
返り値
ResultContainer : 操作の結果を含むオブジェクトです。
例外
ArgumentException
オプションが設定されていない場合。
Class MergeOptions
情報
Documentize.PdfManager プラグインのマージ オプションを表します。
public sealed class MergeOptions : PluginBaseOptions, IPluginOptions
Inheritance
object ←
PluginBaseOptions ←
MergeOptions
Implements
Inherited Members
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
Constructors
MergeOptions()
デフォルト オプションで Documentize.MergeOptions オブジェクトの新しいインスタンスを初期化します。
Class Merger
情報
Documentize.Mergerプラグインを表します。複数のPDFドキュメントを1つのPDFに統合するために使用されます。
[Obsolete("The class will be deleted soon. Please use PdfManager class.")]
public static class Merger
継承
object ←
Merger
継承されたメンバー
メソッド
Process(MergeOptions)
PDFドキュメントを統合します。
public static ResultContainer Process(MergeOptions options)
パラメーター
返り値
ResultContainer : 操作の結果を含むオブジェクトです。
例外
ArgumentException
オプションが設定されていない場合。
Class ObjectResult
public sealed class ObjectResult : IOperationResult
継承
object ←
ObjectResult
実装
継承メンバー
プロパティ
Data
生データを取得します。
public object Data { get; }
プロパティの値
object
IsFile
結果が出力ファイルへのパスであるかどうかを示します。
public bool IsFile { get; }
プロパティの値
bool
IsObject
結果がオブジェクトであるかどうかを示します。
public bool IsObject { get; }
プロパティの値
bool
IsStream
結果が出力ファイルへのパスであるかどうかを示します。
public bool IsStream { get; }
プロパティの値
bool
IsString
結果が文字列であるかどうかを示します。
public bool IsString { get; }
プロパティの値
bool
Text
結果の文字列表現を返します。
public string Text { get; }
プロパティの値
string
メソッド
ToFile()
結果をファイルに変換しようとします。
戻り値
string : 結果がファイルの場合、出力ファイルへのパスを表す文字列;そうでない場合は null。
ToStream()
結果をストリームオブジェクトに変換しようとします。
戻り値
Stream : 結果がストリームの場合、出力データを表すストリームオブジェクト;そうでない場合は null。
ToString()
結果を文字列に変換しようとします。
public override string ToString()
戻り値
string : 結果が文字列の場合、テキストコンテンツを表す文字列;そうでない場合は base.ToString() を返します。
Class OptimizeOptions
情報
Documentize.PdfManager プラグインの Optimize オプションを表します。
public sealed class OptimizeOptions : PluginBaseOptions, IPluginOptions
Inheritance
object ←
PluginBaseOptions ←
OptimizeOptions
Implements
Inherited Members
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
Constructors
OptimizeOptions()
Documentize.OptimizeOptions オブジェクトの新しいインスタンスを、既定のオプションで初期化します。
ドキュメントを線形化して、次のことを実現します。
- 最初のページをできるだけ速く開くこと。
- 次のページや、次のページへのリンクをできるだけ速く表示すること。
- ページのデータが遅いチャネルで順次配信される際に、到着したデータを段階的に表示し、最も有用なデータを先に表示すること。
- ページ全体が受信・表示される前でも、リンクをたどるなどのユーザー操作を実行できるようにすること。
Class Optimizer
情報
Documentize.Optimizerプラグインを表します。PDF文書の最適化、回転、サイズ変更、圧縮に使用されます。
[Obsolete("このクラスはすぐに削除されます。PdfManagerクラスを使用してください。")]
public static class Optimizer
継承
object ←
Optimizer
継承メンバー
メソッド
Process(OptimizeOptions)
指定されたパラメータでDocumentize.Optimizer処理を開始します。
public static ResultContainer Process(OptimizeOptions options)
パラメータ
戻り値
ResultContainer : 操作の結果を含むオブジェクト。
Process(RotateOptions)
指定されたパラメータでDocumentize.Optimizer処理を開始します。
public static ResultContainer Process(RotateOptions options)
パラメータ
戻り値
ResultContainer : 操作の結果を含むオブジェクト。
Process(ResizeOptions)
指定されたパラメータでDocumentize.Optimizer処理を開始します。
public static ResultContainer Process(ResizeOptions options)
パラメータ
戻り値
ResultContainer : 操作の結果を含むオブジェクト。
Process(CompressOptions)
指定されたパラメータでDocumentize.Optimizer処理を開始します。
public static ResultContainer Process(CompressOptions options)
パラメータ
戻り値
ResultContainer : 操作の結果を含むオブジェクト。
情報
1 つの入力データを使用した操作の基本オプションを表します。
public abstract class OptionsWithInput : IHaveInput
継承
object ←
OptionsWithInput
派生
実装
継承されたメンバー
フィールド
フィールド値
IData
プロパティ
入力データを取得または設定します。
public virtual IData Input { get; set; }
プロパティ値
IData
Class PageInfo
public class PageInfo : PageSize
継承
object ←
PageSize ←
PageInfo
継承されたメンバー
- PageSize.Width,
- PageSize.Height,
- PageSize.IsLandscape,
- PageSize.A0,
- PageSize.A1,
- PageSize.A2,
- PageSize.A3,
- PageSize.A4,
- PageSize.A5,
- PageSize.A6,
- PageSize.B5,
- PageSize.PageLetter,
- PageSize.PageLegal,
- PageSize.PageLedger,
- PageSize.P11x17,
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
PageInfo()
Documentize.PageInfoのコンストラクター。
PageInfo(double, double)
Documentize.PageInfoのコンストラクター。
public PageInfo(double width, double height)
パラメーター
プロパティ
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
Class PageSize
情報
PDF ドキュメントにおけるページのサイズを表すクラス。
継承
object ←
PageSize
派生
継承されたメンバー
コンストラクター
PageSize()
Documentize.PageSize のコンストラクター。デフォルトでは A4 サイズ。
PageSize(double, double)
Documentize.PageSize のコンストラクター。
public PageSize(double width, double height)
パラメーター
プロパティ
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
PageLegal
リーガルサイズ (356x216 mm)。
public static PageSize PageLegal { get; }
プロパティ値
PageSize
PageLetter
レターサイズ (279x216 mm)。
public static PageSize PageLetter { get; }
プロパティ値
PageSize
Width
ページの幅を取得または設定します。
public double Width { get; set; }
プロパティ値
double
Class PdfAConverter
情報
PDF/A形式のPDF文書の変換およびPDF/A準拠の検証を処理するためのプラグインを表します。
[Obsolete("このクラスは近々削除されます。PdfConverterクラスを使用してください。")]
public static class PdfAConverter
継承
object ←
PdfAConverter
継承メンバー
メソッド
Process(PdfToPdfAOptions)
PDF文書をPDF/A形式に変換します。
public static ResultContainer Process(PdfToPdfAOptions options)
パラメータ
戻り値
ResultContainer : 操作の結果を含むオブジェクトです。
例外
ArgumentException
オプションが設定されていない場合。
Process(PdfAValidateOptions)
指定されたPDF/A形式への準拠をチェックします。
public static ResultContainer Process(PdfAValidateOptions options)
パラメータ
戻り値
ResultContainer : 操作の結果を含むオブジェクトです。
例外
ArgumentException
オプションが設定されていない場合。
Class PdfAConvertOptions
情報
PDFドキュメントをDocumentize.PdfAConverterプラグインを使用してPDF/A形式に変換するためのオプションを表します。
public sealed class PdfAConvertOptions : PdfAOptionsBase, IPluginOptions
Inheritance
object ←
PdfAOptionsBase ←
PdfAConvertOptions
Implements
Inherited Members
- PdfAOptionsBase.AddInput(IDataSource),
- PdfAOptionsBase.Inputs,
- PdfAOptionsBase.PdfAVersion,
- PdfAOptionsBase.IsLowMemoryMode,
- PdfAOptionsBase.LogOutputSource,
- PdfAOptionsBase.ErrorAction,
- PdfAOptionsBase.SoftMaskAction,
- PdfAOptionsBase.CheckDifferentNamesInFontDictionaries,
- PdfAOptionsBase.AlignText,
- PdfAOptionsBase.OptimizeFileSize,
- PdfAOptionsBase.IccProfileFileName,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
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: 保存操作結果のためのターゲット(ファイルまたはストリームデータソース)。 :
Class PdfAOptionsBase
情報
Documentize.PdfAConverter プラグインオプションの基底クラスを表します。このクラスは PDF/A の変換および検証プロセスを構成するためのプロパティとメソッドを提供します。
Documentize.PdfAConverter プラグインオプションの基底クラスを表します。
このクラスは PDF/A の変換および検証プロセスを構成するためのプロパティとメソッドを提供します。
public abstract class PdfAOptionsBase : IPluginOptions
Inheritance
object ←
PdfAOptionsBase
Derived
Implements
Inherited Members
Constructors
PdfAOptionsBase()
protected PdfAOptionsBase()
Properties
AlignText
PDF/A 変換プロセス中にテキストの配置を保持するために追加の手段が必要かどうかを示す値を取得または設定します。
public bool AlignText { get; set; }
Property Value
bool
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
データのコレクションを取得します。
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
true に設定すると、変換プロセスは生成されるファイルサイズの最小化を試みます。
これにより変換処理のパフォーマンスに影響を与える可能性があります。
PdfAVersion
検証または変換に使用する PDF/A 標準のバージョンを取得または設定します。
public PdfAStandardVersion PdfAVersion { get; set; }
Property Value
PdfAStandardVersion
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
コレクションに新しいデータを追加します
public void AddInput(IData data)
Parameters
data IData: Input data. :
Class PdfAValidateOptions
情報
PDF ドキュメントの PDF/A 準拠を検証するためのオプションを、Documentize.PdfConverter プラグインで表します。
public sealed class PdfAValidateOptions : PdfAOptionsBase, IPluginOptions
継承
object ←
PdfAOptionsBase ←
PdfAValidateOptions
実装
継承メンバー
- PdfAOptionsBase.AddInput(IData),
- PdfAOptionsBase.Inputs,
- PdfAOptionsBase.PdfAVersion,
- PdfAOptionsBase.IsLowMemoryMode,
- PdfAOptionsBase.LogOutputSource,
- PdfAOptionsBase.ErrorAction,
- PdfAOptionsBase.SoftMaskAction,
- PdfAOptionsBase.CheckDifferentNamesInFontDictionaries,
- PdfAOptionsBase.AlignText,
- PdfAOptionsBase.OptimizeFileSize,
- PdfAOptionsBase.IccProfileFileName,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
PdfAValidateOptions()
public PdfAValidateOptions()
Class PdfAValidationResult
情報
PDF/A バリデーションプロセスの結果を表します。
public sealed class PdfAValidationResult
Inheritance
object ←
PdfAValidationResult
Inherited Members
Fields
Field Value
IData
IsValid
検証が成功したかどうかを示す値を取得します。
public readonly bool IsValid
Field Value
bool
StandardVersion
検証に使用された PDF/A 標準バージョンを取得します。
public readonly PdfAStandardVersion StandardVersion
Field Value
PdfAStandardVersion
Class PdfChatGpt
[Obsolete("このクラスはまもなく削除されます。PdfManagerクラスを使用してください。")]
public static class PdfChatGpt
継承
object ←
PdfChatGpt
継承されたメンバー
備考
Documentize.PdfChatGptは、チャットGPTに直接リクエストを送信するため、またはPDFファイルソースを追加して応答を出力ソースに保存するために使用されます。
メソッド
Process(IPluginOptions)
このメソッドには同期版はありません。代わりにProcessAsyncメソッドを使用してください。
public static ResultContainer Process(IPluginOptions options)
パラメーター
戻り値
ResultContainer : #### 例外
NotImplementedException
ProcessAsync(IPluginOptions)
指定されたパラメーターでPdfChatGpt処理を開始します。
public static Task<resultcontainer> ProcessAsync(IPluginOptions options)
パラメーター
戻り値
Task<ResultContainer>
非同期操作を表すタスクオブジェクト。
例外
ArgumentException : InvalidOperationException
Class PdfChatGptOptions
情報
Documentize.PdfChatGpt プラグインのオプションを表します。
public class PdfChatGptOptions : IPluginOptions
継承
object ←
PdfChatGptOptions
派生
実装
継承されたメンバー
コンストラクター
PdfChatGptOptions()
Documentize.PdfChatGptOptions オブジェクトの新しいインスタンスを初期化します。
public PdfChatGptOptions()
プロパティ
public List<idatasource> Inputs { get; }
プロパティの値
List<IDataSource>
Outputs
public List<idatasource> Outputs { get; }
プロパティの値
List<IDataSource>
メソッド
PdfChatGpt プラグインのデータコレクションに新しいデータソースを追加します。
public void AddInput(IDataSource dataSource)
パラメーター
AddOutput(IDataSource)
PdfChatGpt プラグインのデータコレクションに新しい保存データソースを追加します。
public void AddOutput(IDataSource saveDataSource)
パラメーター
saveDataSource IDataSource: 結果を保存するためのデータソース(ファイルまたはストリーム)。 :
Class PdfChatGptRequestOptions
情報
Documentize.PdfChatGptプラグインのオプションを表します。
public class PdfChatGptRequestOptions : PdfChatGptOptions, IPluginOptions
継承
object ←
PdfChatGptOptions ←
PdfChatGptRequestOptions
実装
継承されたメンバー
- PdfChatGptOptions.AddInput(IDataSource),
- PdfChatGptOptions.AddOutput(IDataSource),
- PdfChatGptOptions.Inputs,
- PdfChatGptOptions.Outputs,
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクタ
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
Class PdfConverter
情報
Represents Documentize.PdfConverter plugin. Used to Convert PDF documents to another formats like DOCX/DOC, XLSX/XLS/CSV/XLSM/ODS, HTML, JPEG, PNG, TIFF, PDF/A. Also allows you to perform PDF/A Validation and Convert HTML to PDF.
Represents Documentize.PdfConverter plugin. Used to Convert PDF documents to another formats like DOCX/DOC, XLSX/XLS/CSV/XLSM/ODS, HTML, JPEG, PNG, TIFF, PDF/A.
Also allows you to perform PDF/A Validation and Convert HTML to PDF.
public static class PdfConverter
Inheritance
object ←
PdfConverter
Inherited Members
Methods
Convert(PdfToDocOptions)
Converts PDF document into DOC/DOCX formats.
public static ResultContainer Convert(PdfToDocOptions options)
Parameters
options PdfToDocOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to convert PDF document to Doc format.
// Create PdfToDocOptions object to set instructions
var options = new PdfToDocOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_file.doc"));
// Perform the process
PdfConverter.Convert(options);
The example demonstrates how to convert PDF document to Doc format with setting Mode.
// Create PdfToDocOptions object to set instructions
var options = new PdfToDocOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_file.doc"));
// Set Mode
options.Mode = DocConversionMode.Flow;
// Perform the process
PdfConverter.Convert(options);
Exceptions
ArgumentException
If options not set.
Convert(PdfToXlsOptions)
Converts PDF document into XLSX/XLS/CSV/XLSM/ODS formats.
public static ResultContainer Convert(PdfToXlsOptions options)
Parameters
options PdfToXlsOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to convert PDF to XLSX document.
// Create PdfToXlsOptions object to set instructions
var options = new PdfToXlsOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_xlsx_file.xlsx"));
// Perform the process
PdfConverter.Convert(options);
The example demonstrates how to convert PDF to XLS document.
// Create PdfToXlsOptions object to set instructions
var options = new PdfToXlsOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Specify XLS format
options.Format = PdfToXlsOptions.ExcelFormat.XMLSpreadSheet2003;
options.InsertBlankColumnAtFirst = true;
options.MinimizeTheNumberOfWorksheets = true;
// Set output file path
options.AddOutput(new FileData("path_to_result_xlsx_file.xls"));
// Perform the process
PdfConverter.Convert(options);
Exceptions
ArgumentException
If options not set.
Convert(PdfToHtmlOptions)
Converts PDF document into HTML format.
public static ResultContainer Convert(PdfToHtmlOptions options)
Parameters
options PdfToHtmlOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to convert PDF to HTML document.
// Create PdfToHtmlOptions object to set output data type as file with embedded resources
var options = new PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType.FileWithEmbeddedResources);
// Add input file path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_output.html"));
//Perform the process
PdfConverter.Convert(options);
Exceptions
ArgumentException
If options not set.
Convert(HtmlToPdfOptions)
Converts HTML document into PDF format.
public static ResultContainer Convert(HtmlToPdfOptions options)
Parameters
options HtmlToPdfOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to convert HTML to PDF document.
// Create HtmlToPdfOptions
var options = new HtmlToPdfOptions();
// Add input file path
options.AddInput(new FileData("path_to_input.html"));
// Set output file path
options.AddOutput(new FileData("path_to_output.pdf"));
//Perform the process
PdfConverter.Convert(options);
Exceptions
ArgumentException
If options not set.
Convert(PdfToJpegOptions)
Converts PDF document into JPEG format.
public static ResultContainer Convert(PdfToJpegOptions options)
Parameters
options PdfToJpegOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to convert PDF document into JPEG format.
// Create PdfToJpegOptions object to set instructions
var options = new PdfToJpegOptions();
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Perform the process
PdfConverter.Convert(options);
The example demonstrates how to convert PDF document into JPEG format with settings for pages, resolution, quality.
// Create PdfToJpegOptions object to set instructions
var options = new PdfToJpegOptions();
// Process only the first page
options.PageList = [1];
// Set output resolution to 200 DPI
options.OutputResolution = 200;
// Set output quality to 50
options.Quality = 50;
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Perform the process
PdfConverter.Convert(options);
The example demonstrates how to convert PDF document into JPEG format to streams.
// Create PdfToJpegOptions object to set instructions
var options = new PdfToJpegOptions();
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Perform the process
var results = PdfConverter.Convert(options);
// Get stream results
foreach (var result in results.ResultCollection)
{
var streamResultPage1 = result.ToStream();
}
Exceptions
ArgumentException
If options not set.
Convert(PdfToPngOptions)
Converts PDF document into PNG format.
public static ResultContainer Convert(PdfToPngOptions options)
Parameters
options PdfToPngOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to convert PDF document into PNG format.
// Create PdfToPngOptions object to set instructions
var options = new PdfToPngOptions();
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Perform the process
PdfConverter.Convert(options);
The example demonstrates how to convert 1 page of PDF document into PNG format.
// Create PdfToPngOptions object to set instructions
var options = new PdfToPngOptions()
// Process only the first page
options.PageList = [1];
// Set output resolution to 200 DPI
options.OutputResolution = 200;
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Perform the process
PdfConverter.Convert(options);
The example demonstrates how to convert PDF document into PNG format to streams.
// Create PdfToJpegOptions object to set instructions
var options = new PdfToPngOptions();
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Perform the process
var results = PdfConverter.Convert(options);
// Get stream results
foreach (var result in results.ResultCollection)
{
var streamResultPage1 = result.ToStream();
}
Exceptions
ArgumentException
If options not set.
Convert(PdfToTiffOptions)
Converts PDF document into TIFF format.
public static ResultContainer Convert(PdfToTiffOptions options)
Parameters
options PdfToTiffOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to convert PDF document into TIFF format.
// Create PdfToTiffOptions object to set instructions
var options = new PdfToTiffOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Perform the process
PdfConverter.Convert(options);
The example demonstrates how to convert PDF document into TIFF format with Customizing Pages and DPI.
// Create PdfToTiffOptions object to set instructions
var options = new PdfToTiffOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Set Pages
options.PageList = [1, 3];
// Set result image Resolution
options.OutputResolution = 400;
// Perform the process
PdfConverter.Convert(options);
The example demonstrates how to convert PDF document into TIFF as Multi-Page.
// Create PdfToTiffOptions object to set instructions
var options = new PdfToTiffOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Enable Multi-Page TIFF output
options.MultiPage = true;
// Perform the process
PdfConverter.Convert(options);
The example demonstrates how to convert PDF document into TIFF format with Customizing Compression and ColorDepth.
// Create PdfToTiffOptions object to set instructions
var options = new PdfToTiffOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Set Compression and ColorDepth
options.Compression = TiffCompression.RLE;
options.ColorDepth = TiffColorDepth.Format24bpp;
// Perform the process
PdfConverter.Convert(options);
The example demonstrates how to convert PDF document into TIFF format to streams.
// Create PdfToTiffOptions object to set instructions
var options = new PdfToTiffOptions();
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Perform the process
var results = PdfConverter.Convert(options);
// Get stream results
foreach (var result in results.ResultCollection)
{
var streamResultPage1 = result.ToStream();
}
Exceptions
ArgumentException
If options not set.
Convert(PdfToPdfAOptions)
Converts PDF document into PDF/A format.
public static ResultContainer Convert(PdfToPdfAOptions options)
Parameters
options PdfToPdfAOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to convert the PDF document in a PDF/A format (PDF/A-3b in this case):
// Create the options class to set up the conversion process
var options = new PdfToPdfAOptions
{
PdfAVersion = PdfAStandardVersion.PDF_A_3B
};
// Add the source file
options.AddInput(new FileData("path_to_your_pdf_file.pdf")); // replace with your actual file path
// Add the path to save the converted file
options.AddOutput(new FileData("path_to_the_converted_file.pdf"));
// Run the conversion
PdfConverter.Convert(options);
Exceptions
ArgumentException
If options not set.
Validate(PdfAValidateOptions)
Check PDF document for compliance with specified format PDF/A.
public static ResultContainer Validate(PdfAValidateOptions options)
Parameters
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to validate the PDF document conformance to PDF/A format (PDF/A-1a in this case):
// Create the options class to set up the validation process
var options = new PdfAValidateOptions
{
PdfAVersion = PdfAStandardVersion.PDF_A_1A
};
// Add one or more files to be validated
options.AddInput(new FileData("path_to_your_first_pdf_file.pdf")); // replace with your actual file path
options.AddInput(new FileData("path_to_your_second_pdf_file.pdf"));
// add more files as needed
// Run the validation and get results
var resultContainer = PdfConverter.Validate(options);
// Check the resultContainer.ResultCollection property for validation results for each file:
foreach (var result in resultContainer.ResultCollection)
{
var validationResult = (PdfAValidationResult) result.Data;
var isValid = validationResult.IsValid; // Validation result for document
}
Exceptions
ArgumentException
If options not set.
Class PdfConverterOptions
情報
Pdfコンバータプラグインのオプションを表します。
public abstract class PdfConverterOptions : IPluginOptions
継承
object ←
PdfConverterOptions
派生
実装
継承されたメンバー
プロパティ
PdfConverterOptionsプラグインデータコレクションを返します。
public List<idatasource> Inputs { get; }
プロパティの値
List<IDataSource>
出力
保存操作結果のために追加されたターゲットのコレクションを取得します。
public List<idatasource> Outputs { get; }
プロパティの値
List<IDataSource>
メソッド
PdfConverterプラグインデータコレクションに新しいデータソースを追加します。
public void AddInput(IDataSource dataSource)
パラメータ
AddOutput(IDataSource)
PdfToXLSXConverterOptionsプラグインデータコレクションに新しいデータソースを追加します。
public void AddOutput(IDataSource saveDataSource)
パラメータ
saveDataSource IDataSource: 保存操作結果のためのデータソース(ファイルまたはストリーム)。
例外
NotImplementedException
情報
Documentize.PdfExtractor プラグインを表します。PDF ドキュメントからテキスト、画像、フォーム データ、プロパティ(メタ データ)を抽出するために使用します。
public static class PdfExtractor
継承
object ←
PdfExtractor
継承されたメンバー
メソッド
PDF ドキュメントからテキストを抽出します。
public static string Extract(ExtractTextOptions options)
パラメーター
戻り値
string : 抽出されたテキスト。
例
PDF ファイルからテキスト コンテンツを抽出する例です。
// 入力ファイル パスを設定する ExtractTextOptions オブジェクトを作成
var options = new ExtractTextOptions("path_to_your_pdf_file.pdf");
// 処理を実行し、抽出されたテキストを取得
var textExtracted = PdfExtractor.Extract(options);
PDF ストリームからテキスト コンテンツを抽出する例です。
// 入力ストリームを設定する ExtractTextOptions オブジェクトを作成
var stream = File.OpenRead("path_to_your_pdf_file.pdf");
var options = new ExtractTextOptions(stream);
// 処理を実行し、抽出されたテキストを取得
var textExtracted = PdfExtractor.Extract(options);
TextFormattingMode を使用して PDF ドキュメントのテキスト コンテンツを抽出する例です。
// 入力ファイル パスと TextFormattingMode を設定する ExtractTextOptions オブジェクトを作成
var options = new ExtractTextOptions("path_to_your_pdf_file.pdf", TextFormattingMode.Pure);
// 処理を実行し、抽出されたテキストを取得
var textExtracted = PdfExtractor.Extract(options);
最も簡潔な形で PDF ファイルからテキストを抽出する例です。
// 処理を実行し、抽出されたテキストを取得
var textExtracted = PdfExtractor.Extract(new ExtractTextOptions("path_to_your_pdf_file.pdf", TextFormattingMode.Pure));
例外
ArgumentException
オプションが設定されていない場合。
PDF ドキュメントから画像を抽出します。
public static ResultContainer Extract(ExtractImagesOptions options)
パラメーター
戻り値
ResultContainer : 操作結果を含むオブジェクト。
例
PDF ドキュメントから画像を抽出する例です。
// 指示を設定する ExtractImagesOptions を作成
var options = new ExtractImagesOptions();
// 入力ファイル パスを追加
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// 出力ディレクトリ パスを設定
options.AddOutput(new DirectoryData("path_to_results_directory"));
// 処理を実行
var results = PdfExtractor.Extract(options);
// 画像結果へのパスを取得
var imageExtracted = results.ResultCollection[0].ToFile();
フォルダーなしでストリームに画像を抽出する例です。
// 指示を設定する ExtractImagesOptions を作成
var options = new ExtractImagesOptions();
// 入力ファイル パスを追加
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// 出力を設定しない - 結果はストリームに書き込まれる
// 処理を実行
var results = PdfExtractor.Extract(options);
// ストリームを取得
var ms = results.ResultCollection[0].ToStream();
// デモ用にファイルへコピー
ms.Seek(0, SeekOrigin.Begin);
using (var fs = File.Create("test_file.png"))
{
ms.CopyTo(fs);
}
例外
ArgumentException
オプションが設定されていない場合。
PDF ドキュメントからフォーム データを抽出します。
public static ResultContainer Extract(ExtractFormDataToDsvOptions options)
パラメーター
戻り値
ResultContainer : 操作結果を含むオブジェクト。
例
フォームの値を CSV ファイルにエクスポートする例です。
// 指示を設定する ExtractFormDataToDsvOptions オブジェクトを作成
var options = new ExtractFormDataToDsvOptions(',', true);
// 入力ファイル パスを追加
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// 出力ファイル パスを設定
options.AddOutput(new FileData("path_to_result_csv_file.csv"));
// 処理を実行
PdfExtractor.Extract(options);
フォームの値を TSV ファイルにエクスポートし、プロパティを設定する例です。
// 指示を設定する ExtractFormDataToDsvOptions オブジェクトを作成
var options = new ExtractFormDataToDsvOptions();
// デリミタを設定
options.Delimiter = '\t';
// 結果にフィールド名を追加
options.AddFieldName = true;
// 入力ファイル パスを追加
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// 出力ファイル パスを設定
options.AddOutput(new FileData("path_to_result_csv_file.tsv"));
// 処理を実行
PdfExtractor.Extract(options);
例外
ArgumentException
オプションが設定されていない場合。
PDF ドキュメントからプロパティを抽出します。
public static PdfProperties Extract(ExtractPropertiesOptions options)
パラメーター
戻り値
PdfProperties : 操作結果を含むオブジェクト。
例
PDF ファイルからプロパティ(FileName、Title、Author、Subject、Keywords、Created、Modified、Application、PDF Producer、ページ数)を抽出する例です。
// 入力ファイルを設定する ExtractPropertiesOptions オブジェクトを作成
var options = new ExtractPropertiesOptions("path_to_your_pdf_file.pdf");
// 処理を実行し、プロパティを取得
var pdfProperties = PdfExtractor.Extract(options);
var filename = pdfProperties.FileName;
var title = pdfProperties.Title;
var author = pdfProperties.Author;
var subject = pdfProperties.Subject;
var keywords = pdfProperties.Keywords;
var created = pdfProperties.Created;
var modified = pdfProperties.Modified;
var application = pdfProperties.Application;
var pdfProducer = pdfProperties.PdfProducer;
var numberOfPages = pdfProperties.NumberOfPages;
PDF ストリームからプロパティ(Title、Author、Subject、Keywords、Created、Modified、Application、PDF Producer、ページ数)を抽出する例です。
// 入力ストリームを設定する ExtractPropertiesOptions オブジェクトを作成
var stream = File.OpenRead("path_to_your_pdf_file.pdf");
var options = new ExtractPropertiesOptions(stream);
// 処理を実行し、プロパティを取得
var pdfProperties = PdfExtractor.Extract(options);
var title = pdfProperties.Title;
var author = pdfProperties.Author;
var subject = pdfProperties.Subject;
var keywords = pdfProperties.Keywords;
var created = pdfProperties.Created;
var modified = pdfProperties.Modified;
var application = pdfProperties.Application;
var pdfProducer = pdfProperties.PdfProducer;
var numberOfPages = pdfProperties.NumberOfPages;
最も簡潔な形で PDF ファイルからプロパティを抽出する例です。
// 処理を実行し、プロパティを取得
var pdfProperties = PdfExtractor.Extract(new ExtractPropertiesOptions("path_to_your_pdf_file.pdf"));
例外
ArgumentException
オプションが設定されていない場合。
情報
Documentize.PdfForm プラグインを表します。フラット化やフォームデータの抽出に使用します。また、フィールド名の取得も可能です。
Represents Documentize.PdfForm plugin. Used to Flatten, Extract Forms Data.
Also allows you to Get Fields Names.
public static class PdfForm
Inheritance
継承
object ←
PdfForm
Inherited Members
継承されたメンバー
Methods
PDF ドキュメントからフォームデータを抽出します。
public static ResultContainer Extract(ExtractFormDataToDsvOptions options)
Parameters
パラメータ
Returns
戻り値
ResultContainer : 操作の結果を含むオブジェクト。
Examples
例
The example demonstrates how to Export Form values to CSV file.
// Create ExtractFormDataToDsvOptions object to set instructions
var options = new ExtractFormDataToDsvOptions(',', true);
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_csv_file.csv"));
// Perform the process
PdfForm.Extract(options);
The example demonstrates how to Export Form values to TSV file and set Properties.
// Create ExtractFormDataToDsvOptions object to set instructions
var options = new ExtractFormDataToDsvOptions();
//Set Delimiter
options.Delimiter = '\t';
//Add Field Names to result
options.AddFieldName = true;
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_csv_file.tsv"));
// Perform the process
PdfForm.Extract(options);
Exceptions
例外
ArgumentException
If options not set.
PDF ドキュメント内のフィールドをフラット化します。
public static ResultContainer Flatten(FlattenFieldsOptions options)
Parameters
パラメータ
Returns
戻り値
ResultContainer : 操作の結果を含むオブジェクト。
Examples
例
The example demonstrates how to Flatten fields in PDF file.
// Create FlattenFieldsOptions object to set instructions
var options = new FlattenFieldsOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfForm.Flatten(options);
The example demonstrates how to Flatten fields in PDF file and skip first field.
// Get Fields Names
var fieldNames = PdfForm.GetNames(new GetFieldNamesOptions("path_to_your_pdf_file.pdf"));
// Create FlattenFieldsOptions object to set instructions
var options = new FlattenFieldsOptions();
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Skip 1 field.
options.SkipFields.Add(fieldNames[0]);
// Perform the process
PdfForm.Flatten(options);
Exceptions
例外
ArgumentException
If options not set.
PDF ドキュメント内のフィールド名を取得します。
public static List<string> GetNames(GetFieldNamesOptions options)
Parameters
パラメータ
Returns
戻り値
List<string>
PDF ドキュメント内の名前のリスト。
Examples
例
The example demonstrates how to Get field Names from PDF file.
// Get Field Names
var fieldNames = PdfForm.GetNames(new GetFieldNamesOptions("path_to_your_pdf_file.pdf"));
public static ResultContainer Remove(RemoveFieldsOptions options)
Parameters
パラメータ
Returns
戻り値
ResultContainer : 操作の結果を含むオブジェクト。
Examples
例
The example demonstrates how to Remove fields from PDF file.
// Create RemoveFieldsOptions object to set instructions
var options = new RemoveFieldsOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfForm.Remove(options);
Exceptions
例外
ArgumentException
If options not set.
Class PdfManager
情報
Represents Documentize.PdfManager plugin. Used to Merge, Split, Optimize, Rotate, Resize, Compress PDF documents and Add Table, Add TOC to PDF documents. Can Merge multiple PDF documents into a single PDF. Can Split PDF documents into separate pages. Can Optimize, Rotate, Resize, Compress PDF documents. Can Rotate, Resize Pages of PDF document. Can Add a Table to a PDF document. Can Add a Table of Contents to PDF document.
Represents Documentize.PdfManager plugin. Used to Merge, Split, Optimize, Rotate, Resize, Compress PDF documents and Add Table, Add TOC to PDF documents.
Can Merge multiple PDF documents into a single PDF.
Can Split PDF documents into separate pages.
Can Optimize, Rotate, Resize, Compress PDF documents.
Can Rotate, Resize Pages of PDF document.
Can Add a Table to a PDF document.
Can Add a Table of Contents to PDF document.
public static class PdfManager
Inheritance
object ←
PdfManager
Inherited Members
Methods
AddTable(TableOptions)
Add Table to PDF document.
public static ResultContainer AddTable(TableOptions options)
Parameters
options TableOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to Add Table to PDF file.
// Configure table options
var options = new TableOptions();
options.InsertPageBefore(1)
.AddTable()
.AddRow()
.AddCell().AddParagraph("Name")
.AddCell().AddParagraph("Age")
.AddRow()
.AddCell().AddParagraph("Bob")
.AddCell().AddParagraph("12")
.AddRow()
.AddCell().AddParagraph("Sam")
.AddCell().AddParagraph("20")
.AddRow()
.AddCell().AddParagraph("Sandy")
.AddCell().AddParagraph("26")
.AddRow()
.AddCell().AddParagraph("Tom")
.AddCell().AddParagraph("12")
.AddRow()
.AddCell().AddParagraph("Jim")
.AddCell().AddParagraph("27");
// Add input file path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_output.pdf"));
// Perform the process
PdfManager.AddTable(options);
The example demonstrates how to Add Table to PDF file before 2 page.
// Configure table options
var options = new TableOptions();
options.InsertPageBefore(2) // Add table before page 2
.AddTable()
.AddRow()
.AddCell().AddParagraph("Name")
.AddCell().AddParagraph("Age");
// Add input file path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_output.pdf"));
// Perform the process
PdfManager.AddTable(options);
Exceptions
ArgumentException
If options not set.
AddTableOfContents(TocOptions)
Add Table of Contents (TOC) to PDF document.
public static ResultContainer AddTableOfContents(TocOptions options)
Parameters
options TocOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to add Table of Contents to PDF file.
// Create TocOptions object to set instructions
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2));
options.Headings.Add(new TocHeading("Chapter I", 3));
options.Headings.Add(new TocHeading("Chapter II", 4));
options.Headings.Add(new TocHeading("Chapter III", 5));
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.AddTableOfContents(options);
The example demonstrates how to add Table of Contents to PDF file with generating bookmarks.
// Create TocOptions object to set instructions
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Generate links in bookmarks
options.GenerateBookmarks = true;
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2, false, 1));
options.Headings.Add(new TocHeading("Chapter I", 3, true, 1));
options.Headings.Add(new TocHeading("Chapter II", 4, true, 1));
options.Headings.Add(new TocHeading("Example A", 4, true, 2));
options.Headings.Add(new TocHeading("Example B", 4, true, 2));
options.Headings.Add(new TocHeading("Example C", 4, true, 2));
options.Headings.Add(new TocHeading("Example D", 4, true, 2));
options.Headings.Add(new TocHeading("Chapter III", 5, true, 1));
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.AddTableOfContents(options);
The example demonstrates how to add Table of Contents to PDF file and save as stream.
// Create TocOptions object to set instructions
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2, false, 1));
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output stream
var outputStream = new MemoryStream();
options.AddOutput(new StreamData(outputStream));
options.CloseOutputStreams = false;
// Perform the process
PdfManager.AddTableOfContents(options);
The example demonstrates how to add Table of Contents to PDF file with Customizing the TOC Heading.
// Create TocOptions object to set instructions
var heading = new TocHeading();
heading.Text = "Intro";
heading.PageNumber = 5;
heading.GenerateNumbering = true;
heading.Level = 2;
var tocOptions = new TocOptions();
tocOptions.Headings.Add(heading);
// Add input and output files
tocOptions.AddInput(new FileData("path_to_your_pdf_file.pdf"));
tocOptions.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Generate the TOC with customized options
PdfManager.AddTableOfContents(tocOptions);
Exceptions
ArgumentException
If options not set.
Compress(CompressOptions)
Compress PDF document. Try to reduce size of the document.
public static ResultContainer Compress(CompressOptions options)
Parameters
options CompressOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to Compress PDF document.
// Create CompressOptions object to set instructions
var options = new CompressOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Compress(options);
Exceptions
ArgumentException
If options not set.
CreatePdfByChatGptRequestAsync(ChatGptRequestOptions)
Create PDF document by Reply of ChatGpt.
Used to send requests to ChatGPT directly or by adding PDF file sources and save the reply to the output source.
public static Task<resultcontainer> CreatePdfByChatGptRequestAsync(ChatGptRequestOptions options)
Parameters
Returns
Task<ResultContainer>
An object containing the result of the operation.
Examples
The example demonstrates how to use ChatGpt by adding messages to the request.
var options = new ChatGptRequestOptions();
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
options.ApiKey = "Your API key."; // You need to provide the key to access the API.
options.MaxTokens = 1000; // The maximum number of tokens to generate in the chat completion.
// Add the request messages.
options.Messages.Add(new Message
{
Content = "You are a helpful assistant.",
Role = Role.System
});
options.Messages.Add(new Message
{
Content = "What is the biggest pizza diameter ever made?",
Role = Role.User
});
// Process the request.
var result = await PdfManager.CreatePdfByChatGptRequestAsync(options);
var fileResultPath = result.ResultCollection[0].Data;
var chatCompletionObject = result.ResultCollection[1].Data as ChatCompletion; // The ChatGPT API chat completion object.
The example demonstrates how to use ChatGpt by adding one message to the request.
var options = new ChatGptRequestOptions();
options.AddOutput(new FileData("path_to_result_pdf_file.pdf")); // Add the output file path.
options.ApiKey = "Your API key."; // You need to provide the key to access the API.
options.MaxTokens = 1000; // The maximum number of tokens to generate in the chat completion.
// Add the request message.
// In this case, the system message with Content = "You are a helpful assistant." is added by default.
// The role of the query message is "user" by default.
options.Query = "What is the lowest temperature recorded on the Earth?";
// Process the request.
var result = await PdfManager.CreatePdfByChatGptRequestAsync(options);
var fileResultPath = result.ResultCollection[0].Data;
var chatCompletionObject = result.ResultCollection[1].Data as ChatCompletion; // The ChatGPT API chat completion object.
The example demonstrates how to use Chat by adding file(s) as the message source(s).
var options = new ChatGptRequestOptions();
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Add the PDF text source.
// In case of multiple sources, the text from each document will be added to the request message collection
// as a separate message with the role "user".
options.AddInput(new FileData("TextSource.pdf"));
options.ApiKey = "Your API key."; // You need to provide the key to access the API.
options.MaxTokens = 1000; // The maximum number of tokens to generate in the chat completion.
// Add the request message.
// In this case, the system message with Content = "You are a helpful assistant." is added by default.
// The role of the query message is "user" by default.
options.Query = "How many letters in the provided text?";
// Process the request.
var result = await PdfManager.CreatePdfByChatGptRequestAsync(options);
var fileResultPath = result.ResultCollection[0].Data;
var chatCompletionObject = result.ResultCollection[1].Data as ChatCompletion; // The ChatGPT API chat completion object.
Exceptions
ArgumentException : If options not set.
Merge(MergeOptions)
Merge PDF documents.
public static ResultContainer Merge(MergeOptions options)
Parameters
options MergeOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to Merge two PDF documents.
// Create MergeOptions object to set instructions
var options = new MergeOptions();
// Add input file paths
options.AddInput(new FileData("path_to_your_pdf_file_1.pdf"));
options.AddInput(new FileData("path_to_your_pdf_file_2.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Merge(options);
Exceptions
ArgumentException
If options not set.
Optimize(OptimizeOptions)
Optimize PDF document.
Linearize the document in order to
- open the first page as quickly as possible;
- display next page or follow by link to the next page as quickly as possible;
- display the page incrementally as it arrives when data for a page is delivered over a slow channel (display the most useful data first);
- permit user interaction, such as following a link, to be performed even before the entire page has been received and displayed.
public static ResultContainer Optimize(OptimizeOptions options)
Parameters
options OptimizeOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to Optimize PDF document.
// Create OptimizeOptions object to set instructions
var options = new OptimizeOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Optimize(options);
Exceptions
ArgumentException
If options not set.
Resize(ResizeOptions)
Resize Pages of PDF document.
public static ResultContainer Resize(ResizeOptions options)
Parameters
options ResizeOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to Resize PDF document.
// Create ResizeOptions object to set instructions
var options = new ResizeOptions();
// Set new PageSize
options.PageSize = PageSize.A3;
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Resize(options);
Exceptions
ArgumentException
If options not set.
Rotate(RotateOptions)
Rotate Pages of PDF document.
public static ResultContainer Rotate(RotateOptions options)
Parameters
options RotateOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to Rotate PDF document.
// Create RotateOptions object to set instructions
var options = new RotateOptions();
// Set new Rotation
options.Rotation = Rotation.On90;
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Rotate(options);
Exceptions
ArgumentException
If options not set.
Split(SplitOptions)
Split PDF document by pages.
public static ResultContainer Split(SplitOptions options)
Parameters
options SplitOptions: An options object containing instructions for the operation.
Returns
ResultContainer : An object containing the result of the operation.
Examples
The example demonstrates how to Split PDF document.
// Create SplitOptions object to set instructions
var options = new SplitOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file paths
options.AddOutput(new FileData("path_to_result_pdf_file_1.pdf"));
options.AddOutput(new FileData("path_to_result_pdf_file_2.pdf"));
// Perform the process
PdfManager.Split(options);
Exceptions
ArgumentException
If options not set.
Class PdfProperties
情報
PDF ドキュメントのプロパティとメタ情報を表します。
public class PdfProperties
継承
object ←
PdfProperties
継承されたメンバー
コンストラクタ
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
Class PdfSecurity
情報
Documentize.PdfSecurity プラグインを表します。PDF ドキュメントの暗号化、復号化、署名に使用します。
public static class PdfSecurity
Inheritance
object ←
PdfSecurity
Inherited Members
Methods
Decrypt(DecryptOptions)
PDF ドキュメントを復号化します。
public static ResultContainer Decrypt(DecryptOptions options)
Parameters
Returns
ResultContainer : 操作の結果を含むオブジェクト。
Examples
この例は PDF ドキュメントを復号化する方法を示しています。
// Create DecryptOptions object to set instructions
var options = new DecryptOptions("123456");
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Decrypt(options);
Exceptions
ArgumentException
options が設定されていない場合。
Encrypt(EncryptOptions)
PDF ドキュメントを暗号化します。
public static ResultContainer Encrypt(EncryptOptions options)
Parameters
Returns
ResultContainer : 操作の結果を含むオブジェクト。
Examples
この例は PDF ドキュメントを暗号化する方法を示しています。
// Create EncryptOptions object to set instructions
var options = new EncryptOptions("123456", "qwerty");
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Encrypt(options);
Exceptions
ArgumentException
options が設定されていない場合。
Sign(SignOptions)
デジタル署名で PDF ドキュメントに署名します。
public static ResultContainer Sign(SignOptions options)
Parameters
Returns
ResultContainer : 操作の結果を含むオブジェクト。
Examples
この例は PDF ドキュメントに署名する方法を示しています。
// Create SignOptions object to set instructions
var options = new SignOptions("path_to_your_pfx_file.pfx", "password_of_your_pfx_file");
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Sign(options);
この例は PFX ファイルのストリームを使用して PDF ドキュメントに署名する方法を示しています。
using var pfxStream = File.OpenRead(@"path_to_your_pfx_file.pfx");
var options = new SignOptions(pfxStream, "password_of_your_pfx_file");
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Sign(options);
この例は非表示署名で PDF ドキュメントに署名する方法を示しています。
var options = new SignOptions("path_to_your_pfx_file.pfx", "password_of_your_pfx_file");
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Configure invisible signature
signOptions.Visible = false;
// Perform the process
PdfSecurity.Sign(options);
この例は追加オプションを使用して PDF ドキュメントに署名する方法を示しています。
// Create SignOptions object to set instructions
var options = new SignOptions("path_to_your_pfx_file.pfx", "password_of_your_pfx_file");
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Optional parameters
options.Reason = "my Reason";
options.Contact = "my Contact";
options.Location = "my Location";
options.PageNumber = 3;
// Perform the process
PdfSecurity.Sign(options);
この例はタイムスタンプ付きで PDF ドキュメントに署名する方法を示しています。
// Create SignOptions object to set instructions
var options = new SignOptions("path_to_your_pfx_file.pfx", "password_for_your_pfx_file");
options.TimestampOptions = new TimestampOptions("server_url");
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Sign(options);
Exceptions
ArgumentException
options が設定されていない場合。
Class PdfToDocOptions
情報
Documentize.PdfConverter プラグインの PDF から DOC へのコンバータオプションを表します。
public sealed class PdfToDocOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
PdfToDocOptions
実装
継承されたメンバー
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
PdfToDocOptions()
Documentize.PdfToDocOptions オブジェクトの新しいインスタンスを、デフォルトオプションで初期化します。
プロパティ
Mode
PDF ドキュメントをワードプロセッシング ドキュメントに変換する方法を制御できます。
public DocConversionMode Mode { get; set; }
プロパティの値
DocConversionMode
備考
生成されるドキュメントが大幅に編集されない場合は、Documentize.DocConversionMode.TextBox モードを使用します。テキスト ボックスは、変更が少ない場合に簡単に修正できます。
出力ドキュメントでさらなる編集が必要な場合は、Documentize.DocConversionMode.Flow モードを使用します。フローモードの段落やテキスト行はテキストの修正が容易ですが、サポートされていない書式オブジェクトは Documentize.DocConversionMode.TextBox モードより見栄えが悪くなります。
Class PdfToHtmlOptions
情報
Documentize.PdfConverter プラグインの PDF から HTML への変換オプションを表します。
public sealed class PdfToHtmlOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
PdfToHtmlOptions
実装
継承されたメンバー
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
PdfToHtmlOptions(SaveDataType)
指定された出力データ型の Documentize.PdfToHtmlOptions オブジェクトの新しいインスタンスを初期化します。
public PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType outputDataType = SaveDataType.FileWithExternalResources)
パラメーター
プロパティ
OutputDataType
出力データ型を取得します。
public PdfToHtmlOptions.SaveDataType OutputDataType { get; }
プロパティの値
PdfToHtmlOptions.SaveDataType
Class PdfToJpegOptions
情報
Documentize.PdfConverter プラグインの PDF から JPEG へのコンバータオプションを表します。
public sealed class PdfToJpegOptions : PluginBaseOptions, IPluginOptions
Inheritance
object ←
PluginBaseOptions ←
PdfToJpegOptions
Implements
Inherited Members
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
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
Class PdfToPdfAOptions
情報
Documentize.PdfConverter プラグインを使用して PDF ドキュメントを PDF/A 形式に変換するためのオプションを表します。
public sealed class PdfToPdfAOptions : PdfAOptionsBase, IPluginOptions
継承
object ←
PdfAOptionsBase ←
PdfToPdfAOptions
実装
継承されたメンバー
- PdfAOptionsBase.AddInput(IData),
- PdfAOptionsBase.Inputs,
- PdfAOptionsBase.PdfAVersion,
- PdfAOptionsBase.IsLowMemoryMode,
- PdfAOptionsBase.LogOutputSource,
- PdfAOptionsBase.ErrorAction,
- PdfAOptionsBase.SoftMaskAction,
- PdfAOptionsBase.CheckDifferentNamesInFontDictionaries,
- PdfAOptionsBase.AlignText,
- PdfAOptionsBase.OptimizeFileSize,
- PdfAOptionsBase.IccProfileFileName,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
PdfToPdfAOptions()
public PdfToPdfAOptions()
プロパティ
Outputs
追加されたターゲット(ファイルまたはストリーム データ ソース)のコレクションを取得し、保存操作の結果を格納します。
public List<idata> Outputs { get; }
プロパティの値
List<IData>
メソッド
AddOutput(IData)
新しい結果保存ターゲットを追加します。
public void AddOutput(IData data)
パラメーター
data IData: 保存操作の結果を格納するターゲット(ファイルまたはストリーム データ ソース)。
Class PdfToPngOptions
情報
Documentize.PdfConverter プラグイン用の PDF から PNG へのコンバータオプションを表します。
public sealed class PdfToPngOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
PdfToPngOptions
実装
継承されたメンバー
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
PdfToPngOptions()
Documentize.PdfToPngOptions オブジェクトの新しいインスタンスを初期化します。
プロパティ
OutputResolution
生成される画像の解像度の値を取得または設定します。
public int OutputResolution { get; set; }
プロパティの値
int
PageList
処理対象のページリストを取得または設定します。
public List<int> PageList { get; set; }
プロパティの値
List<int>
Class PdfToTiffOptions
情報
Documentize.PdfConverter プラグイン用の PDF から TIFF への変換オプションを表します。
public sealed class PdfToTiffOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
PdfToTiffOptions
実装
継承されたメンバー
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
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>
Class PdfToXlsOptions
情報
Documentize.PdfConverter プラグイン用の PDF から XLS/XLSX へのコンバータオプションを表します。
public sealed class PdfToXlsOptions : PluginBaseOptions, IPluginOptions
Inheritance
object ←
PluginBaseOptions ←
PdfToXlsOptions
Implements
Inherited Members
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
Constructors
PdfToXlsOptions()
Documentize.PdfToXlsOptions オブジェクトのインスタンスをデフォルトオプションで初期化します。
Properties
出力フォーマット。
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
Class PluginBaseOptions
public class PluginBaseOptions : IPluginOptions
Inheritance
object ←
PluginBaseOptions
Derived
- AddTimestampOptions,
- ChatGptRequestOptions,
- CompressOptions,
- DecryptOptions,
- EncryptOptions,
- ExtractFormDataToDsvOptions,
- ExtractImagesOptions,
- FlattenFieldsOptions,
- HtmlToPdfOptions,
- MergeOptions,
- OptimizeOptions,
- PdfToDocOptions,
- PdfToHtmlOptions,
- PdfToJpegOptions,
- PdfToPngOptions,
- PdfToTiffOptions,
- PdfToXlsOptions,
- RemoveFieldsOptions,
- ResizeOptions,
- RotateOptions,
- SignOptions,
- SplitOptions,
- TableOptions,
- TocOptions
Implements
Inherited Members
Properties
操作完了後に入力ストリームを閉じます。
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
操作のための Outputs データを返します。
public List<idata> Outputs { get; }
Property Value
List<IData>
Methods
Inputs に新しいデータを追加します。
public void AddInput(IData data)
Parameters
AddOutput(IData)
Outputs に新しいデータを追加します。
public void AddOutput(IData data)
Parameters
Class PngConverter
情報
Documentize.PngConverterプラグインを表します。PDFドキュメントをPNG形式に変換するために使用されます。
[Obsolete("このクラスはすぐに削除されます。PdfConverterクラスを使用してください。")]
public static class PngConverter
継承
object ←
PngConverter
継承されたメンバー
メソッド
Process(PdfToPngOptions)
PDFドキュメントをPNG形式に変換します。
public static ResultContainer Process(PdfToPngOptions options)
パラメータ
戻り値
ResultContainer : 操作の結果を含むオブジェクトです。
例外
ArgumentException
オプションが設定されていない場合。
Class Rectangle
継承
object ←
Rectangle
継承されたメンバー
コンストラクター
Rectangle(double, double, double, double)
Rectangleのコンストラクターです。
public Rectangle(double llx, double lly, double urx, double ury)
パラメーター
Class RemoveFieldsOptions
情報
Documentize.PdfForm プラグインによるドキュメントのフィールド削除オプションを表します。
public class RemoveFieldsOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
RemoveFieldsOptions
実装
継承メンバー
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクター
RemoveFieldsOptions()
Documentize.RemoveFieldsOptions オブジェクトの新しいインスタンスを、デフォルトオプションで初期化します。
public RemoveFieldsOptions()
Class ResizeOptions
情報
Documentize.PdfManager プラグインのリサイズオプションを表します。
public sealed class ResizeOptions : PluginBaseOptions, IPluginOptions
Inheritance
object ←
PluginBaseOptions ←
ResizeOptions
Implements
Inherited Members
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
Constructors
ResizeOptions()
初期設定オプションで Documentize.ResizeOptions オブジェクトの新しいインスタンスを初期化します。
Properties
PageSize
新しいページサイズを取得または設定します。
public PageSize PageSize { get; set; }
Property Value
PageSize
Class ResultContainer
情報
プラグインの処理結果のコレクションを含むコンテナを表します。
public class ResultContainer
継承
object ←
ResultContainer
継承メンバー
プロパティ
ResultCollection
操作結果のコレクションを取得します。
public List<ioperationresult> ResultCollection { get; }
プロパティ値
List<IOperationResult>
Class RotateOptions
情報
Documentize.PdfManager プラグインの回転オプションを表します。
public sealed class RotateOptions : PluginBaseOptions, IPluginOptions
継承
object ←
PluginBaseOptions ←
RotateOptions
実装
継承されたメンバー
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
コンストラクタ
RotateOptions()
Documentize.RotateOptions オブジェクトの新しいインスタンスを、デフォルト オプションで初期化します。
プロパティ
Rotation
新しいページの回転を取得または設定します。
public Rotation Rotation { get; set; }
プロパティ値
Rotation
Class SignOptions
情報
Documentize.PdfSecurity プラグインの署名オプションを表します。
public sealed class SignOptions : PluginBaseOptions, IPluginOptions
Inheritance
object ←
PluginBaseOptions ←
SignOptions
Implements
Inherited Members
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
Constructors
SignOptions(string, string)
Documentize.SignOptions オブジェクトの新しいインスタンスを、デフォルトオプションで初期化します。
public SignOptions(string pfx, string password)
Parameters
SignOptions(Stream, string)
Documentize.SignOptions オブジェクトの新しいインスタンスを、デフォルトオプションで初期化します。
public SignOptions(Stream pfx, string password)
Parameters
pfx Stream: pfx ファイルを含むストリーム。password string: pfx ファイルのパスワード。
Properties
署名の連絡先。
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
Class SplitOptions
情報
Documentize.PdfManager プラグインの分割オプションを表します。
public sealed class SplitOptions : PluginBaseOptions, IPluginOptions
Inheritance
object ←
PluginBaseOptions ←
SplitOptions
Implements
Inherited Members
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
Constructors
SplitOptions()
既定のオプションで Documentize.SplitOptions オブジェクトの新しいインスタンスを初期化します。
Class Splitter
情報
Documentize.Splitterプラグインを表します。PDF文書を個別のページに分割するために使用されます。
[Obsolete("このクラスはまもなく削除されます。PdfManagerクラスを使用してください。")]
public static class Splitter
継承
object ←
Splitter
継承されたメンバー
メソッド
Process(SplitOptions)
ページごとにPDF文書を分割します。
public static ResultContainer Process(SplitOptions options)
パラメーター
戻り値
ResultContainer : 操作の結果を含むオブジェクトです。
例外
ArgumentException
オプションが設定されていない場合。
Class StreamData
情報
読込および保存操作のためのストリームデータを表します。
public sealed class StreamData : IData
継承
object ←
StreamData
実装
継承されたメンバー
コンストラクター
StreamData(Stream)
指定されたストリーム オブジェクトで新しいストリーム データ ソースを初期化します。
public StreamData(Stream data)
パラメーター
プロパティ
Data
現在のデータ ソースのストリーム オブジェクトを取得します。
public Stream Data { get; }
プロパティ値
Stream
DataType
データの種類 (ストリーム)。
public DataType DataType { get; }
プロパティ値
DataType
Class StreamDataSource
情報
プラグインのロードおよび保存操作のためのストリームデータソースを表します。
public sealed class StreamDataSource : IDataSource
継承
object ←
StreamDataSource
実装
継承メンバー
コンストラクタ
StreamDataSource(Stream)
指定されたストリームオブジェクトを使用して新しいストリームデータソースを初期化します。
public StreamDataSource(Stream data)
パラメータ
プロパティ
Data
現在のデータソースのストリームオブジェクトを取得します。
public Stream Data { get; }
プロパティ値
Stream
DataType
データソースのタイプ(ストリーム)。
public DataType DataType { get; }
プロパティ値
DataType
Class StreamResult
public sealed class StreamResult : IOperationResult
継承
object ←
StreamResult
実装
継承されたメンバー
プロパティ
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()
結果をファイルに変換しようとします。
戻り値
string : 結果がファイルの場合、出力ファイルへのパスを表す文字列。そうでない場合は null。
ToStream()
結果をストリームオブジェクトに変換しようとします。
戻り値
Stream : 結果がストリームの場合、出力データを表すストリームオブジェクト。そうでない場合は null。
Class StringResult
public sealed class StringResult : IOperationResult
継承
object ←
StringResult
実装
継承されたメンバー
プロパティ
Data
生データを取得します。
public object Data { get; }
プロパティ値
object
IsFile
結果が出力ファイルへのパスであるかどうかを示します。
public bool IsFile { get; }
プロパティ値
bool
IsStream
結果が出力ファイルへのパスであるかどうかを示します。
public bool IsStream { get; }
プロパティ値
bool
IsString
結果が文字列であるかどうかを示します。
public bool IsString { get; }
プロパティ値
bool
Text
結果の文字列表現を返します。
public string Text { get; }
プロパティ値
string
メソッド
ToFile()
結果をファイルに変換しようとします。
戻り値
string : 結果がファイルである場合の出力ファイルへのパスを表す文字列; そうでない場合は null。
ToStream()
結果をストリームオブジェクトに変換しようとします。
戻り値
Stream : 結果がストリームである場合の出力データを表すストリームオブジェクト; そうでない場合は null。
ToString()
結果を文字列に変換しようとします。
public override string ToString()
戻り値
string : 結果が文字列である場合のテキストコンテンツを表す文字列; そうでない場合は base.ToString() を返します。
Class TableBuilder
情報
クラスはPDFページのためのテーブルビルダーを表します。
public class TableBuilder
継承
object ←
TableBuilder
派生
継承されたメンバー
メソッド
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)
パラメータ
返り値
TableOptions : PdfGeneratorTableOptionsへの変換の結果。
Class TableCellBuilder
public class TableCellBuilder : TableRowBuilder
継承
object ←
TableBuilder ←
TableRowBuilder ←
TableCellBuilder
継承したメンバー
- TableRowBuilder.AddCell(),
- TableRowBuilder.AddRow(),
- TableBuilder.AddRow(),
- TableBuilder.AddTable(),
- TableBuilder.InsertPageAfter(int),
- TableBuilder.InsertPageBefore(int),
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
メソッド
AddCell()
テーブルにセルを追加します。
public override TableCellBuilder AddCell()
返り値
TableCellBuilder : 現在の Documentize.TableCellBuilder のインスタンスです。
AddParagraph(params string[])
テーブルセルに段落を追加します。
public TableCellBuilder AddParagraph(params string[] paragraphs)
パラメータ
返り値
TableCellBuilder : 現在の Documentize.TableCellBuilder のインスタンスです。
Class TableGenerator
情報
Documentize.TableGenerator プラグインを表します。PDF ドキュメントに表を追加するために使用されます。
[Obsolete("The class will be deleted soon. Please use PdfManager class.")]
public static class TableGenerator
Inheritance
object ←
TableGenerator
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
Returns
ResultContainer : 操作の結果を含むオブジェクト。
Exceptions
ArgumentException
オプションが設定されていない場合。
Class TableOptions
情報
Documentize.PdfManager プラグインによってドキュメントにテーブルを追加するためのオプションを表します。
public sealed class TableOptions : PluginBaseOptions, IPluginOptions
Inheritance
object ←
PluginBaseOptions ←
TableOptions
Implements
Inherited Members
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
Constructors
TableOptions()
Documentize.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 のインスタンス。
Class TableRowBuilder
public class TableRowBuilder : TableBuilder
継承
object ←
TableBuilder ←
TableRowBuilder
派生
継承メンバー
- TableBuilder.AddRow(),
- TableBuilder.AddTable(),
- TableBuilder.InsertPageAfter(int),
- TableBuilder.InsertPageBefore(int),
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
メソッド
AddCell()
セルをテーブル行に追加します。
public virtual TableCellBuilder AddCell()
戻り値
TableCellBuilder : 作成されたDocumentize.TableCellBuilderのインスタンス。
AddRow()
AddRowをオーバーライドします。
public override TableRowBuilder AddRow()
戻り値
TableRowBuilder : 現在のDocumentize.TableRowBuilderのインスタンス。
情報
Documentize.TextExtractor プラグインを表します。PDF ドキュメントからテキストを抽出するために使用されます。
[Obsolete("The class will be deleted soon. Please use PdfExtractor class.")]
public static class TextExtractor
継承
object ←
TextExtractor
継承されたメンバー
メソッド
PDF ドキュメントからテキストを抽出します。
public static string Process(ExtractTextOptions options)
パラメータ
戻り値
string : 抽出結果を含むオブジェクトです。
例外
ArgumentException
オプションが設定されていない場合。
情報
Documentize.TextExtractor プラグインのためのテキスト抽出オプションを表します。
public sealed class TextExtractorOptions
継承
object ←
TextExtractorOptions
継承メンバー
コンストラクタ
指定されたテキストフォーマットモードのために Documentize.TextExtractorOptions オブジェクトの新しいインスタンスを初期化します。
public TextExtractorOptions(TextFormattingMode formattingMode = TextFormattingMode.Raw)
パラメーター
プロパティ
フォーマットモードを取得します。
public TextFormattingMode FormattingMode { get; set; }
プロパティ値
TextFormattingMode
操作のための Inputs データを返します。
public List<idatasource> Inputs { get; }
プロパティ値
List<IDataSource>
メソッド
Inputs に新しいデータを追加します。
public void AddInput(IDataSource dataSource)
パラメーター
Class TiffConverter
情報
Documentize.TiffConverter プラグインを表します。PDF ドキュメントを TIFF フォーマットに変換するために使用されます。
[Obsolete("このクラスはまもなく削除されます。PdfConverter クラスを使用してください。")]
public static class TiffConverter
継承
object ←
TiffConverter
継承されたメンバー
メソッド
Process(PdfToTiffOptions)
PDF ドキュメントを TIFF フォーマットに変換します。
public static ResultContainer Process(PdfToTiffOptions options)
パラメーター
戻り値
ResultContainer : 操作の結果を含むオブジェクトです。
例外
ArgumentException
オプションが設定されていない場合。
Class Timestamp
情報
Documentize.Timestampプラグインを表します。ドキュメントにタイムスタンプを追加するために使用されます。
[Obsolete("このクラスはすぐに削除されます。PdfSecurityクラスを使用してください。")]
public static class Timestamp
継承
object ←
Timestamp
継承されたメンバー
メソッド
Process(AddTimestampOptions)
指定されたパラメータでDocumentize.Timestamp処理を開始します。
public static ResultContainer Process(AddTimestampOptions options)
パラメータ
戻り値
ResultContainer : 操作の結果を含むオブジェクト。
例外
ArgumentException
optionsが設定されていない場合。
Class TimestampOptions
public class TimestampOptions
継承
object ←
TimestampOptions
継承されたメンバー
コンストラクター
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
Class TocGenerator
情報
Documentize.TocGenerator プラグインを表します。PDF ドキュメントに目次を追加するために使用されます。
[Obsolete("The class will be deleted soon. Please use PdfManager class.")]
public static class TocGenerator
継承
object ←
TocGenerator
継承されたメンバー
例
この例は 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)
パラメーター
戻り値
ResultContainer : 操作の結果を含む Documentize.ResultContainer オブジェクト。
Class TocHeading
情報
Documentize.PdfManagerプラグインを使用して目次の見出しやタイトルを文書化するためのオプションを表します。
継承
object ←
TocHeading
継承されたメンバー
コンストラクタ
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
Class TocOptions
情報
Documentize.PdfManager プラグインによって文書に目次を追加するためのオプションを表します。
public sealed class TocOptions : PluginBaseOptions, IPluginOptions
Inheritance
object ←
PluginBaseOptions ←
TocOptions
Implements
Inherited Members
- PluginBaseOptions.AddInput(IData),
- PluginBaseOptions.AddOutput(IData),
- PluginBaseOptions.Inputs,
- PluginBaseOptions.Outputs,
- PluginBaseOptions.CloseInputStreams,
- PluginBaseOptions.CloseOutputStreams,
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
Constructors
TocOptions()
Documentize.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
Class XlsConverter
情報
Documentize.XlsConverter プラグインを表します。PDF ドキュメントを XLSX/XLS/CSV/XLSM/ODS 形式に変換するために使用されます。
[Obsolete("このクラスは間もなく削除されます。PdfConverter クラスを使用してください。")]
public static class XlsConverter
継承
object ←
XlsConverter
継承メンバー
メソッド
Process(PdfToXlsOptions)
PDF ドキュメントを XLSX/XLS/CSV/XLSM/ODS 形式に変換します。
public static ResultContainer Process(PdfToXlsOptions options)
パラメータ
戻り値
ResultContainer : 操作の結果を含むオブジェクト。
例外
ArgumentException
オプションが設定されていない場合。
Enum ConvertErrorAction
情報
このクラスは変換エラーに対するアクションを表します。
public enum ConvertErrorAction
フィールド
Enum ConvertSoftMaskAction
情報
このアクションは、ソフトマスクを使用した画像の変換に関するアクションを表します。
public enum ConvertSoftMaskAction
フィールド
ConvertToStencilMask = 1: ソフトマスクはステンシルマスクに変換されます。Default = 0: デフォルトの戦略を使用します。
Enum DataType
情報
プラグイン処理のためのデータの可能なタイプを表します。
フィールド
Directory = 2: データ型はそのパスで表されるディレクトリです。File = 0: データ型はそのパスで表されるファイルです。Stream = 1: データ型はストリームです。
Enum DocConversionMode
public enum DocConversionMode
フィールド
Flow = 1: フル認識モードで、エンジンはグループ化と多階層分析を実行して、元のドキュメント作成者の意図を復元し、最大限に編集可能なドキュメントを生成します。欠点は、出力ドキュメントが元のPDFファイルとは異なる見た目になる可能性があることです。TextBox = 0: このモードは高速で、PDFファイルの元の外観を最大限に保持するのに適していますが、結果として得られるドキュメントの編集可能性は制限される可能性があります。元のPDFファイルの視覚的にグループ化された各テキストブロックは、結果のドキュメントのテキストボックスに変換されます。これにより、出力ドキュメントは元のPDFファイルに最大限に類似します。出力ドキュメントは見栄えが良いですが、完全にテキストボックスで構成されており、Microsoft Wordでのさらなる編集がかなり難しくなる可能性があります。これがデフォルトモードです。
情報
レンダリング中に使用される可能性のあるメディアタイプを指定します。
public enum HtmlMediaType
フィールド
Print = 0: 印刷.Screen = 1: スクリーン.
Enum HtmlPageLayoutOption
情報
ページのサイズとレイアウトを決定するフラグを指定します。
public enum HtmlPageLayoutOption
フィールド
FitToWidestContentWidth = 3: ページの幅が指定されたページ幅ではなく、コンテンツサイズ自体から決定されることを示します。None = 0: HtmlPageLayoutOptionがページのサイズやレイアウトに影響を与えないことを示すデフォルト値です。ScaleToPageWidth = 256: ドキュメントの内容がページに合わせてスケーリングされることを示します。
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標準バージョンを指定します。
Enum PdfToHtmlOptions.SaveDataType
public enum PdfToHtmlOptions.SaveDataType
フィールド
FileWithEmbeddedResources = 1: 埋め込みリソース付きのファイルにHTMLを保存FileWithExternalResources = 0: 外部リソース付きのファイルにHTMLを保存StreamWithEmbeddedResources = 2: 埋め込みリソース付きのファイルストリームにHTMLを保存
情報
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) ファイル形式。
Enum Role
フィールド
Assistant = 2System = 1User = 0
Enum Rotation
フィールド
None = 0: 非回転。On180 = 2: 180度回転。On270 = 3: 時計回りに270度回転。On360 = 4: 時計回りに360度回転。On90 = 1: 時計回りに90度回転。
情報
PDF ドキュメントをテキストに変換するときに使用できる異なるモードを定義します。Documentize.TextExtractorOptions クラスを参照してください。
public enum TextExtractorOptions.TextFormattingMode
Fields
Plain = 2: テキストフラグメントの相対的な位置を考慮しつつ、追加のスペースを加えずに PDF テキストコンテンツを表します。Pure = 0: 少数のフォーマットルーチンを使用して PDF テキストコンテンツを表します。これには、相対的な位置を考慮し、テキストをページの幅に合わせるために追加のスペースを加えることが含まれます。Raw = 1: フォーマットなしの PDF コンテンツをそのまま表します。
Enum TextFormattingMode
情報
PDF ドキュメントをテキストに変換する際に使用できるさまざまなモードを定義します。Documentize.ExtractTextOptions クラスを参照してください。
public enum TextFormattingMode
フィールド
Flatten = 2: PDF コンテンツをテキストフラグメントの座標によって位置づけて表現します。基本的には「Raw」モードに似ています。しかし、「Raw」はドキュメント内のテキストフラグメント(オペレーター)の構造を保持することに重点を置くのに対し、「Flatten」はテキストが読み取られる順序を保持することに重点を置いています。Pure = 0: PDF テキストコンテンツをいくつかのフォーマットルーチンで表現します。これには、相対的な位置を考慮し、テキストをページの幅に合わせるために余分なスペースを追加することが含まれます。Raw = 1: PDF コンテンツをそのまま、すなわちフォーマットなしで表現します。
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ビット。
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エンコーダに渡すことができます。
Interface IData
情報
具体的なデータが実装すべき共通メンバーを定義する汎用データインターフェイス。
Properties
DataType
データソースの種類。
DataType DataType { get; }
Property Value
DataType
Interface IDataSource
情報
具体的なデータが実装すべき共通メンバーを定義する一般的なデータインターフェース。
public interface IDataSource
プロパティ
DataType
データソースのタイプ。
DataType DataType { get; }
プロパティの値
DataType
情報
オプションが実装すべき入力データを定義する汎用データインターフェースです。
public interface IHaveInput
プロパティ
入力データを取得または設定します。
IData Input { get; set; }
プロパティの値
IData
Interface IOperationResult
情報
具体的なプラグイン操作結果が実装すべき共通メソッドを定義する一般的な操作結果インターフェイス。
public interface IOperationResult
プロパティ
Data
生データを取得します。
プロパティの値
object
IsFile
結果が出力ファイルへのパスであるかどうかを示します。
プロパティの値
bool
IsStream
結果が出力ストリームであるかどうかを示します。
プロパティの値
bool
IsString
結果がテキスト文字列であるかどうかを示します。
プロパティの値
bool
メソッド
ToFile()
結果をファイルに変換しようとします。
戻り値
string : 結果がファイルの場合は出力ファイルへのパスを表す文字列、それ以外の場合は null。
ToStream()
結果をストリームオブジェクトに変換しようとします。
戻り値
Stream : 結果がストリームの場合は出力データを表すストリームオブジェクト、それ以外の場合は null。
Interface IPluginOptions
情報
一般的なプラグインオプションインターフェースで、具体的なプラグインオプションが実装すべき共通メソッドを定義します。
public interface IPluginOptions
クラス Security
情報
Documentize.Security プラグインを表します。PDF ドキュメントを暗号化および復号化するために使用されます。
[Obsolete("このクラスはまもなく削除されます。PdfSecurity クラスを使用してください。")]
public static class Security
継承
object ←
Security
継承されたメンバー
メソッド
Process(EncryptOptions)
PDF ドキュメントを暗号化します。
public static ResultContainer Process(EncryptOptions options)
パラメータ
戻り値
ResultContainer : 操作の結果を含むオブジェクトです。
例外
ArgumentException
オプションが設定されていない場合。
Process(DecryptOptions)
PDF ドキュメントを復号化します。
public static ResultContainer Process(DecryptOptions options)
パラメータ
戻り値
ResultContainer : 操作の結果を含むオブジェクトです。
例外
ArgumentException
オプションが設定されていない場合。
クラス メッセージ
継承
object ←
Message
継承されたメンバー
コンストラクター
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.Signatureプラグインを表します。PDF文書に署名するために使用されます。
[Obsolete("The class will be deleted soon. Please use PdfSecurity class.")]
public static class Signature
継承
object ←
Signature
継承されたメンバー
メソッド
Process(SignOptions)
PDF文書に署名します。
public static ResultContainer Process(SignOptions options)
パラメーター
戻り値
ResultContainer : 操作の結果を含むオブジェクト。
例外
ArgumentException
オプションが設定されていない場合。
クラスの使用法
継承
object ←
Usage
継承されたメンバー
コンストラクター
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
クラスの選択
継承
object ←
Choice
継承メンバー
コンストラクタ
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
クラスライセンス
public static class License
継承
object ←
License
継承されたメンバー
例
ライセンスをアクティブにする方法を示します。
// ライセンスを設定
License.Set("PathToLicense.lic");
メソッド
Set(string)
コンポーネントにライセンスを付与します。
public static void Set(string licenseName)
パラメーター
licenseName string: フルファイル名または短いファイル名が指定できます。評価モードに切り替えるには空の文字列を使用してください。