Class TocGenerator
Class TocGenerator
Numele spaţiului: Aspose.Pdf.Plugins Adunare: Aspose.PDF.dll (25.5.0)
Representează Aspose.PDF TocGenerator plugin.
public sealed class TocGenerator : IPlugin, IDisposableInheritance
Implements
Membrii moștenitori
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Exemplul arată cum să adăugați TOC la fișierul 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()
De fapt, nu este necesar pentru TocGenerator.
public void Dispose()Process(Opțiuni IPlugin)
Începe procesarea PdfGenerator cu parametrii specificați.
public ResultContainer Process(IPluginOptions options)Parameters
options IPluginOptions
Un obiect de opțiuni conține instrucțiuni pentru PdfGenerator.
Returns
Un obiect ResultContainer conține rezultatul operațiunii.