Click or drag to resize
Pdf Library for .NET

PdfSplitManagerSplitBySize Method

Divides the document into documents of at most maxFileSize bytes each, every one holding as many pages as fit.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntax
public PdfDocument[] SplitBySize(
	long maxFileSize
)

Parameters

maxFileSize  Int64
The largest size of a document, in bytes.

Return Value

PdfDocument
The documents, in page order.
Remarks
A single page larger than the limit makes a document of its own.
See Also