This file contains 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 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 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 DocConverter | |
var plugin = new DocConverter(); | |
// Create PdfToDocOptions object to set instructions | |
var options = new PdfToDocOptions(); | |
// Add input file path | |
options.AddInput(new FileDataSource("path_to_input.pdf")); | |
// Set output file path | |
options.AddOutput(new FileDataSource("path_to_input.doc")); |
This file contains 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 TiffConverter | |
var plugin = new TiffConverter(); | |
// create PdfToTiffOptions object to set instructions | |
var opt = new PdfToTiffOptions(); | |
// add input file path | |
opt.AddInput(new FileDataSource(inputPath)); | |
// set output file path | |
opt.AddOutput(new DirectoryDataSource(outputPath)); | |
// perform the process | |
plugin.Process(opt); |
This file contains 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
// Initialize the HtmlConverter | |
var plugin = new HtmlConverter(); | |
// Create PdfToHtmlOptions object to set output data type as file with embedded resources | |
var options = new PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType.FileWithEmbeddedResources); | |
// Define input and output file paths | |
options.AddInput(new FileDataSource("path_to_input.pdf")); | |
options.AddOutput(new FileDataSource("path_to_output.html")); | |
//Perform the process | |
plugin.Process(options); |
This file contains 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 PngConverter | |
var plugin = new PngConverter(); | |
// Create PdfToPngOptions object to set instructions | |
var options = new PdfToPngOptions() | |
{ | |
OutputResolution = 400, // Set image resolution | |
}; | |
// Add input File path |
This file contains 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 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 JpegConverter | |
var plugin = new JpegConverter(); | |
// create PdfToJpegOptions object to set instructions | |
var opt = new PdfToJpegOptions(); | |
// add input file path | |
opt.AddInput(new FileDataSource(inputPath)); | |
// set output file path | |
opt.AddOutput(new DirectoryDataSource(outputPath)); | |
// perform the process | |
plugin.Process(opt); |
This file contains 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
// Step 1: Initialize the HTML Converter | |
var converter = new HtmlConverter(); | |
// Step 2: Configure options for HTML to PDF conversion | |
var options = new HtmlToPdfOptions(); | |
// Step 3: Set file paths | |
options.AddInput(new FileDataSource("input.html")); | |
options.AddOutput(new FileDataSource("output.pdf")); |
This file contains 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 ImageExtractor object to extract images | |
var plugin = new ImageExtractor(); | |
// create ImageExtractorOptions | |
var options = new ImageExtractorOptions(); | |
// add input file path | |
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf")); | |
// set output directory | |
options.AddOutput(new DirectoryDataSource("path_to_results_directory")); | |
// perform extraction process | |
var resultContainer = plugin.Process(options); |
NewerOlder