Class TocGenerator
Contents
[
Hide
]TocGenerator class
Represents Aspose.PDF TocGenerator plugin.
public sealed class TocGenerator : IDisposable, IPlugin
Constructors
Name | Description |
---|---|
TocGenerator() | The default constructor. |
Methods
Name | Description |
---|---|
Dispose() | Implementation of IDisposable. In fact, it is not necessary for TocGenerator. |
Process(IPluginOptions) | Starts the PdfGenerator processing with the specified parameters. |
Examples
The example demonstrates how to add TOC to PDF file.
// create TocGenerator
var generator = new TocGenerator();
// create TocOptions object to set instructions
var opt = new TocOptions();
// add input file paths
opt.AddInput(new FileDataSource(inputPath1));
opt.AddInput(new FileDataSource(inputPath2));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform extraction process
generator.Process(opt);
See Also
- interface IPlugin
- namespace Aspose.Pdf.Plugins
- assembly Aspose.PDF