Class TocGenerator
Class TocGenerator
Nom dels espais: Aspose.Pdf.Plugins Assemblea: Aspose.PDF.dll (25.4.0)
Represents Aspose.PDF TocGenerator Plugin.
public sealed class TocGenerator : IPlugin, IDisposable
Inheritance
Implements
Membres heretats
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
L’exemple demostra com afegir TOC al fitxer 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()
Implementació de IDisposable. De fet, no és necessari per a TocGenerator.
public void Dispose()
Process(Opcions IPlugin)
Comença el processament del PdfGenerator amb els paràmetres especificats.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Un objecte d’opcions conté instruccions per al PdfGenerator.
Returns
Un objecte de ResultContainer conté el resultat de l’operaci.