v26.9
Removed class FormFlattener
- The previous implementation of plugins is gradually being retired. The functionality of this class has been replaced by class PdfForm.
- Class FormFlattener: removed, use PdfForm.
Example Usage:
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);Example Usage:
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);GetFieldNamesOptions class has been redesigned
- Inheritance from OptionsWithInput class.
- Added Property Input.
Example Usage:
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"));Example Usage:
The example demonstrates how to Get field Names from PDF stream.
// Prepare input stream
using var inputStream = File.OpenRead("path_to_your_pdf_file.pdf");
// Get Field Names
var fieldNames = PdfForm.GetNames(new GetFieldNamesOptions(inputStream));Other fixes
📄 PDF to DOC
- Fixed PDF to DOC conversion throwing OutOfMemoryException
- Fixed PDF to HTML conversion rendering a broken footer logo
🖼️ PDF to JPEG
- Fixed PDF to JPEG conversion throwing OutOfMemoryException
- Fixed PDF to PNG conversion throwing InvalidOperationException
- Fixed PDF to TIFF output missing information
📑 PDF to PDF/A
- Fixed PDF to PDF/A output not valid for PDF/A-1b or PDF/A-3b
- Fixed PDF/A-2b conversion throwing InvalidCastException