Class Merger
Class Merger
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll
Reprezentuje wtyczkę Aspose.Pdf.Plugins.Merger.
public sealed class Merger : IPlugin
Dziedziczenie
Implementuje
Dziedziczone członkowie
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Przykłady
Przykład ilustruje, jak połączyć dwa dokumenty PDF.
// utwórz Merger
var merger = new Merger();
// utwórz obiekt MergeOptions, aby ustawić instrukcje
var opt = new MergeOptions();
// dodaj ścieżki plików wejściowych
opt.AddInput(new FileDataSource(inputPath1));
opt.AddInput(new FileDataSource(inputPath2));
// ustaw ścieżkę pliku wyjściowego
opt.AddOutput(new FileDataSource(outputPath));
// wykonaj proces
merger.Process(opt);
Konstruktory
Merger()
public Merger()
Metody
Process(IPluginOptions)
Rozpoczyna przetwarzanie Aspose.Pdf.Plugins.Merger z określonymi parametrami.
public ResultContainer Process(IPluginOptions options)
Parametry
options
IPluginOptions
Obiekt opcji zawierający instrukcje dla Aspose.Pdf.Plugins.Merger.
Zwraca
Obiekt ResultContainer zawierający wynik operacji.