This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create FormExportToDsvOptions object to set instructions | |
var options = new FormExportToDsvOptions(',', true); | |
// 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_csv_file.csv")); | |
// Perform the process | |
FormExporter.Process(options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The example demonstrates how to add Table of Contents to PDF file. | |
var options = new TocOptions(); | |
// Set the Title | |
options.Title = "My Table of Contents"; | |
// Generate links in bookmarks | |
options.GenerateBookmarks = true; | |
// Design Headings | |
options.Headings.Add(new TocHeading("Introduction", 2, false, 1)); | |
options.Headings.Add(new TocHeading("Chapter I", 3, true, 1)); | |
options.Headings.Add(new TocHeading("Chapter II", 4, true, 1)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create PdfToTiffOptions object to set instructions | |
var options = new PdfToTiffOptions(); | |
// Add input file path | |
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf")); | |
// Set output Directory path | |
options.AddOutput(new DirectoryDataSource("path_to_output_directory")); | |
// Perform the process | |
TiffConverter.Process(options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create PdfToPngOptions object to set instructions | |
var options = new PdfToPngOptions(); | |
// Add input File path | |
options.AddInput(new FileDataSource("path_to_input.pdf")); | |
// Set output Directory path | |
options.AddOutput(new DirectoryDataSource("path_to_output_directory")); | |
// Perform the process | |
PngConverter.Process(options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Documentize; | |
// Initialize the TableGenerator | |
var tableGenerator = new TableGenerator(); | |
// Configure advanced table options | |
var options = new TableOptions() | |
.InsertPageAfter(2) // Insert the table after the second page | |
.AddTable() | |
.AddRow() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create PdfToJpegOptions object to set instructions | |
var options = new PdfToJpegOptions(); | |
// Add input File path | |
options.AddInput(new FileDataSource("path_to_input.pdf")); | |
// Set output Directory path | |
options.AddOutput(new DirectoryDataSource("path_to_output_directory")); | |
// Perform the process | |
JpegConverter.Process(options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The example demonstrates how to convert HTML to PDF document. | |
// Create HtmlToPdfOptions | |
var options = new HtmlToPdfOptions(); | |
// Add input file path | |
options.AddInput(new FileDataSource("path_to_input.html")); | |
// Set output file path | |
options.AddOutput(new FileDataSource("path_to_output.pdf")); | |
//Perform the process | |
HtmlConverter.Process(options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create ImageExtractorOptions to set instructions | |
var options = new ImageExtractorOptions(); | |
// Add input file path | |
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf")); | |
// Set output Directory path | |
options.AddOutput(new DirectoryDataSource("path_to_results_directory")); | |
// Perform the process | |
var results = ImageExtractor.Process(options); | |
// Get path to image result | |
var imageExtracted = results.ResultCollection[0].ToFile(); |
NewerOlder