

public class SplitByPageOptions : SplitOptions
Note that the Page indices are zero-based, which means that the first Page is found at index 0.
Also note that you can use the static Factory Methods to create instances with specific configurations.
// Extracts a single Page to a file var options = SplitByPageOptions.ToPath(2, "output/page3.pdf"); document.Split(options); // Extracts a Page range to a stream using (var stream = new MemoryStream()) { var options = SplitByPageOptions.ToStream(0, 4, stream); document.Split(options); } // Splits all Pages to separate files var options = SplitByPageOptions.ToPath("output/document.pdf"); document.Split(options); // Creates document_Page_1.pdf, document_Page_2.pdf, etc.
System.Object
Xceed.PdfLibrary.NET.SplitOptions
Xceed.PdfLibrary.NET.SplitByPageOptions
| Name | Description | |
|---|---|---|
![]() | From | Gets the zero-based index corresponding to the first Page that will be extracted (inclusive). |
![]() | OutputPath | Gets the filepath that will be used to save the output of the split operation. (Inherited from Xceed.PdfLibrary.NET.SplitOptions) |
![]() | OutputStreams | The streams that will be used as output for the split PdfDocuments. (Inherited from Xceed.PdfLibrary.NET.SplitOptions) |
![]() | To | Gets the zero-based index corresponding to the last Page that will be extracted (inclusive). |
| Name | Description | |
|---|---|---|
![]() ![]() | ToPath | Overloaded. Creates the options that will be used to extract a single Page to a file. |
![]() ![]() | ToStream | Overloaded. Splits a single Page to a stream. |
![]() ![]() | ToStreams | Creates the options that will be used to split all Pages individually, with each Page written to its own stream. |
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.