Class TocGenerator

Class TocGenerator

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

Aspose.PDF TocGenerator プラグインを表します。

public sealed class TocGenerator : IPlugin, IDisposable

継承

objectTocGenerator

実装

IPlugin, IDisposable

継承されたメンバー

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

この例は、PDFファイルに目次を追加する方法を示します。

// TocGeneratorを作成
var generator = new TocGenerator();
// 指示を設定するためのTocOptionsオブジェクトを作成
var opt = new TocOptions();
// 入力ファイルパスを追加
opt.AddInput(new FileDataSource(inputPath1));
opt.AddInput(new FileDataSource(inputPath2));
// 出力ファイルパスを設定
opt.AddOutput(new FileDataSource(outputPath));
// 抽出処理を実行
generator.Process(opt);

コンストラクター

TocGenerator()

public TocGenerator()

メソッド

Dispose()

IDisposableの実装。実際には、TocGeneratorには必要ありません。

public void Dispose()

Process(IPluginOptions)

指定されたパラメーターでPdfGenerator処理を開始します。

public ResultContainer Process(IPluginOptions options)

パラメーター

options IPluginOptions

PdfGeneratorの指示を含むオプションオブジェクト。

戻り値

ResultContainer

操作の結果を含むResultContainerオブジェクト。

例外

NotSupportedException

 日本語