Class FormFlattener
情報
Documentize.FormFlattener プラグインを表します。PDF ドキュメント内のフィールドをフラット化するために使用されます。
[Obsolete("The class will be deleted soon. Please use PdfForm class.")]
public static class FormFlattenerInheritance
Inherited Members
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
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
pathstring: PDF ドキュメントへのパス。
Returns
PDF ドキュメント内の名前のリスト。
GetFieldNames(Stream) : PDF ドキュメント内のフィールド名を取得します。
public static List<string> GetFieldNames(Stream stream)Parameters
streamStream: PDF ドキュメントを含むストリーム。
Returns
PDF ドキュメント内の名前のリスト。
Process(FlattenFieldsOptions) : PDF ドキュメント内のフォームフィールドをフラット化します。
public static ResultContainer Process(FlattenFieldsOptions options)Parameters
optionsFlattenFieldsOptions: 操作の指示を含むオプション オブジェクト。
Returns
ResultContainer : 操作結果を含むオブジェクト。
Exceptions
オプションが設定されていない場合。
Namespace: Documentize Assembly: Documentize.dll