Click or drag to resize

PdfSplitterSplit(String, PdfLoadOptions, Int32, Int32, FuncInt32, String) Method

Splits the specified pages from a PDF document loaded from a file with the specified path and with the specified options into separate documents.

Namespace: SautinSoft.Pdf.Facades
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2026.5.5
Syntax
public static void Split(
	string path,
	PdfLoadOptions options,
	int startPage,
	int pageCount,
	Func<int, string> outputPath = null
)

Parameters

path  String
The path to a file from which to load a PDF document.
options  PdfLoadOptions
The options used for loading a PdfDocument from a PDF file.
startPage  Int32
The zero-based start page index.
pageCount  Int32
Page count to split.
outputPath  FuncInt32, String  (Optional)
The delegate used for output file path generation.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null or options is null.
InvalidPdfPasswordExceptionPDF file is encrypted and the Password is invalid.
ArgumentOutOfRangeExceptionstartPage or pageCount is less than 0.
See Also