Class TocGenerator

Class TocGenerator

Името на пространството: Aspose.Pdf.Plugins Асамблея: Aspose.PDF.dll (25.4.0)

Aspose.PDF TocGenerator.

public sealed class TocGenerator : IPlugin, IDisposable

Inheritance

object TocGenerator

Implements

IPlugin , IDisposable

наследници

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

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

Constructors

TocGenerator()

public TocGenerator()

Methods

Dispose()

В действителност, това не е необходимо за TocGenerator.

public void Dispose()

Process(IPlugin опции)

Започва обработката на PdfGenerator с посочените параметри.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Обектът за опции съдържа инструкции за PdfGenerator.

Returns

ResultContainer

Обектът ResultContainer съдържа резултата от операцията.

Exceptions

NotSupportedException

 Български