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
using Documentize; | |
// Initialize the HtmlConverter | |
var htmlConverter = new HtmlConverter(); | |
// Configure options for PDF to HTML conversion | |
var options = new PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType.FileWithEmbeddedResources) | |
{ | |
// Additional settings can be added here if needed | |
}; |
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 pngConverter = new PngConverter(); | |
// Configure PNG conversion options | |
var options = new PngOptions | |
{ | |
OutputResolution = 300, // Set image resolution | |
PageList = new List<int> { 1, 2, 3 } // Convert specific pages |
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 DocConverter | |
var plugin = new DocConverter(); | |
// create PdfToDocOptions object to set instructions | |
var opt = new PdfToDocOptions(); | |
// add input file path | |
opt.AddInput(new FileDataSource(inputPath)); | |
// set output file path | |
opt.AddOutput(new FileDataSource(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
// create ImageExtractor object to extract images | |
using (var plugin = new ImageExtractor()) | |
{ | |
// create ImageExtractorOptions | |
var opt = new ImageExtractorOptions(); | |
// add input file path to data sources | |
opt.AddInput(new FileDataSource(inputPath)); | |
// perform extraction 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
// create PdfXLS converter | |
var converter = new PdfXLS(); | |
// create PdfToXLSOptions | |
var opt = new PdfToXLSOptions(); | |
// add input file path | |
opt.AddInput(new FileDataSource(inputPath)); | |
// set output file path | |
opt.AddOutput(new FileDataSource(outputPath)); | |
converter.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
// create Timestamp | |
var plugin = new Timestamp(); | |
// create AddTimestampOptions object to set instructions | |
var opt = new AddTimestampOptions("path_to_pfx", "password_for_pfx", "timestamp_server_url"); | |
// add input file path | |
opt.AddInput(new FileDataSource("path_to_pdf")); | |
// set output file path | |
opt.AddOutput(new FileDataSource("path_to_result_pdf")); | |
// perform the process | |
plugin.Process(opt); |
NewerOlder