Class FormFlattener

情報

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

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

Inheritance

objectFormFlattener

Inherited Members

Examples

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

// Create FormFlattenerOptions object to set instructions
var options = new FormFlattenerOptions();
// Add input file path
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileDataSource("path_to_result_pdf_file.pdf"));
// Perform the process
FormFlattener.Process(options);

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

// Get Fields Names
var fieldNames = FormFlattener.GetFieldNames("path_to_your_pdf_file.pdf");
// Create FormFlattenerOptions object to set instructions
var options = new FormFlattenerOptions();
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
options.AddOutput(new FileDataSource("path_to_result_pdf_file.pdf"));
// Skip 1 field.
options.SkipFields.Add(fieldNames[0]);
// Perform the process
FormFlattener.Process(options);

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

// Get Fields Names
var fieldNames = FormFlattener.GetFieldNames("path_to_your_pdf_file.pdf");

Methods

GetFieldNames(string)

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

public static List<string> GetFieldNames(string path)

Parameters

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

Returns

List<string>

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

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

public static List<string> GetFieldNames(Stream stream)

Parameters

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

Returns

List<string>

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

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

public static ResultContainer Process(FlattenFieldsOptions options)

Parameters

Returns

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

Exceptions

ArgumentException

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

Namespace: Documentize Assembly: Documentize.dll

 日本語