Class PdfGenerator

PdfGenerator class

Represents PdfGenerator plugin.

public sealed class PdfGenerator : IDisposable, IPlugin

Constructors

NameDescription
PdfGenerator()The default constructor.

Methods

NameDescription
Dispose()Implementation of IDisposable. In fact, it is not necessary for PdfGenerator.
Process(IPluginOptions)Starts the PdfGenerator processing with the specified parameters.

Examples

The example demonstrates how to add table to PDF file.

// create PdfGenerator
var generator = new PdfGenerator();
// create PdfGeneratorTableOptions object to set instructions
var opt = new PdfGeneratorTableOptions();
// add input file paths
opt.AddDataSource(new FileDataSource(inputPath1));
opt.AddDataSource(new FileDataSource(inputPath2));
// set output file path
opt.AddSaveDataSource(new FileDataSource(outputPath));
// perform extraction process
generator.Process(opt);

See Also