Splitter Plugin for Aspose.PDF
The Aspose.PDF Splitter Plugin for .NET allows you to divide PDF documents into smaller files by page, range, or according to custom logic. It’s ideal for workflows that require splitting large reports, distributing sections, or processing PDFs in bulk for archiving or review. Additionally, you can utilize the Divide PDF Automation feature for seamless integration in your automation processes.
Latest Articles
Aspose.PDF Splitter Plugin Key Features
Split PDF by Page
Separate each page of a PDF into its own document or extract specific pages/ranges as new files.Bulk PDF Splitting
Process multiple documents or large PDFs efficiently in a single operation.Custom Output Naming & Logic
Control how output files are named and organize splits programmatically for workflow integration.
Getting Started with Aspose.PDF Splitter Plugin
Install Aspose.PDF for .NET
Add Aspose.PDF to your solution via NuGet or assemblies.Configure Your License
Apply your license keys for full plugin functionality.Set Up Split Options
Use theSplitter
andSplitOptions
classes to specify the source PDF and output targets.Run the Split Operation
Execute the split and manage results as required.
Example: Split a PDF into Multiple Files in C#
using Aspose.Pdf.Plugins;
// Input/output paths
var inputPath = @"C:\Samples\sample.pdf";
var outputPath1 = @"C:\Samples\split_page1.pdf";
var outputPath2 = @"C:\Samples\split_page2.pdf";
// Set up split options
var options = new SplitOptions();
options.AddInput(new FileDataSource(inputPath));
options.AddOutput(new FileDataSource(outputPath1));
options.AddOutput(new FileDataSource(outputPath2));
// Create the Splitter and process
var splitter = new Splitter();
splitter.Process(options);
Console.WriteLine("Split completed: " + outputPath1 + ", " + outputPath2);
Use Cases & Extensions
- Per-Page Export: Generate a file for every page (iterate and add outputs programmatically).
- Range Extraction: For advanced use, set up options to extract custom page ranges as separate files.
- Bulk Operations: Integrate into Divide PDF Automation scripts for archiving, review, or downstream processing. You can also use Aspose Create PDF functionality for generating documents that can later be split.
For full details on range support and output customization, refer to the API Reference.
Best Practices
- Always backup originals before splitting.
- Use meaningful file names for easy retrieval.
- Validate the number and order of output files, especially in batch jobs.
Related Resources: