Class TocGenerator

TocGenerator class

Представляет плагин Aspose.PDF TocGenerator.

public sealed class TocGenerator : IDisposable, IPlugin

Constructors

NameDescription
TocGenerator()Конструктор по умолчанию.

Methods

NameDescription
Dispose()Реализация IDisposable. На самом деле, это не обязательно для TocGenerator.
Process(IPluginOptions)Запускает обработку PdfGenerator с указанными параметрами.

Examples

Пример демонстрирует, как добавить оглавление (TOC) в PDF файл.

// 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