v25.3

新增插件:Form Flattener

  • Class FormFlattener:表示 Documentize.FormFlattener 插件,用于在 PDF 文档中扁平化字段。
  • Class FormFlattenerOptions:表示通过 Documentize.FormFlattener 插件对文档进行字段扁平化的选项。

示例用法:

// The example demonstrates how to Flatten fields in PDF file.
// 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"));
// Optional parameter for skip the field with name "Surname".
options.SkipFields.Add("Surname");
// Perform the process
FormFlattener.Process(options);

// The example demonstrates how to Get Field Names from PDF file.
var fieldNames = FormFlattener.GetFieldNames("path_to_your_pdf_file.pdf");

小幅修复

  • 改进了类提示和示例。
 中文