Class TocGenerator

Class TocGenerator

Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll

Represents Aspose.PDF TocGenerator plugin.

public sealed class TocGenerator : IPlugin, IDisposable

Inheritance

objectTocGenerator

Implements

IPlugin, IDisposable

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

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);

Constructors

TocGenerator()

public TocGenerator()

Methods

Dispose()

Implementation of IDisposable. In fact, it is not necessary for TocGenerator.

public void Dispose()

Process(IPluginOptions)

Starts the PdfGenerator processing with the specified parameters.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

An options object contains instructions for the PdfGenerator.

Returns

ResultContainer

An ResultContainer object contains the result of the operation.

Exceptions

NotSupportedException

 English