v25.9
Improved usability of DocConverter and added extra mode
- Class DocConverter: is static and does not require the use of a constructor.
- Class PdfToDocOptions: added property “Mode” that allows you to customize the conversion process.
- Enum DocConversionMode: allows you to customize the pdf-doc conversion process. Values:
- TextBox: This mode is fast and good for maximally preserving original look of the PDF file, but editability of the resulting document could be limited. Every visually grouped block of text in the original PDF file is converted into a textbox in the resulting document.
- Flow: Full recognition mode, the engine performs grouping and multi-level analysis to restore the original document author’s intent and produce a maximally editable document.
Example Usage:
// 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 FileDataSource("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileDataSource("path_to_result_file.doc"));
// Perform the process
DocConverter.Process(options);
Example Usage:
// 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 FileDataSource("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileDataSource("path_to_result_file.doc"));
// Set Mode
options.Mode = DocConversionMode.Flow;
// Perform the process
DocConverter.Process(options);
Improved usability of PdfAConverter
Class PdfAConverter: is static and does not require the use of a constructor.
Example Usage:
// 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 PdfAConvertOptions
{
PdfAVersion = PdfAStandardVersion.PDF_A_3B
};
// Add the source file
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf")); // replace with your actual file path
// Add the path to save the converted file
options.AddOutput(new FileDataSource("path_to_the_converted_file.pdf"));
// Run the conversion
PdfAConverter.Process(options);
Example Usage:
// 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 FileDataSource("path_to_your_first_pdf_file.pdf")); // replace with your actual file path
options.AddInput(new FileDataSource("path_to_your_second_pdf_file.pdf"));
// add more files as needed
// Run the validation and get results
var resultContainer = PdfAConverter.Process(options);
// Check the resultContainer.ResultCollection property for validation results for each file:
for (var i = 0; i < resultContainer.ResultCollection.Count; i++)
{
var result = resultContainer.ResultCollection[i];
var validationResult = (PdfAValidationResult) result.Data;
var isValid = validationResult.IsValid; // Validation result for the i-th document
}
Improved usability of Timestamp
Class Timestamp: is static and does not require the use of a constructor.
Example Usage:
// The example demonstrates how to add Timestamp to the document.
// Create AddTimestampOptions object to set instructions
var options = new AddTimestampOptions("path_to_your_pfx_file.pfx", "password_for_your_pfx_file", "timestamp_server_url");
// 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
Timestamp.Process(options);
Updated documentation
Updated examples, added extra examples:
- Information about license and Evaluation
- Product pages
- PDF Table Generator
- PDF TOC Generator
- PDF Timestamp Adder
- PDF/A Converter
- PDF Image Extractor
- PDF Text Extractor
- PDF to XLS Converter
- PDF to HTML Converter
Fixed Bugs
- Fixed issues with HTML to PDF
- Fixed issues with PDF to PDF/A-2B
- Improved PDF to JPEG: some text characters generated as square
- Fixed PDF to TIFF render
- Fixed PDF to JPEG unexpected exceptions