Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The Aspose.Pdf.LowCode.Splitter plugin splits a PDF document into separate output documents. Configure the operation with SplitOptions, add one input document, add output targets, and call Process.
// For complete examples and data files, visit https://github.com/aspose-pdf/Aspose.PDF-for-.NET
private static void SplitPdfDocumentWithPlugin()
{
// The path to the documents directory
var dataDir = RunExamples.GetDataDir_AsposePdf_Pages();
// Create PDF Splitter plugin
var plugin = new Aspose.Pdf.LowCode.Splitter();
// Add input and output files
var options = new Aspose.Pdf.LowCode.SplitOptions();
options.AddInput(new Aspose.Pdf.LowCode.FileDataSource(dataDir + "SplitToPages.pdf"));
options.AddOutput(new Aspose.Pdf.LowCode.FileDataSource(dataDir + "SplitPdfDocument_1_out.pdf"));
options.AddOutput(new Aspose.Pdf.LowCode.FileDataSource(dataDir + "SplitPdfDocument_2_out.pdf"));
// Split the file
var result = plugin.Process(options);
// Get the path of the first output PDF document
var firstOutputPath = result.ResultCollection[0].ToFile();
}
Process returns one result for each generated document.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.