Table of Contents
- Getting Started
- EO.Pdf
- EO.Web
- EO.WebBrowser
- EO.Wpf
- Common Topics
- Reference
- .NET API Reference
- EO.Base
- EO.Base.UI
- EO.Extensions
- EO.Pdf
- EO.Pdf
- Classes
- ClientCertificate Class
- HtmlDocument Class
- HtmlElement Class
- HtmlNode Class
- HtmlTextNode Class
- HtmlToPdf Class
- HtmlToPdfException Class
- HtmlToPdfOptions Class
- HtmlToPdfResult Class
- HtmlToPdfSession Class
- PageInfo Class
- PageInfoCollection Class
- PageStyle Class
- Paginator Class
- PdfAction Class
- PdfAttachment Class
- PdfAttachmentCollection Class
- PdfBookmark Class
- PdfBookmarkCollection Class
- PdfCheckBoxField Class
- PdfComboBoxField Class
- PdfDestination Class
- PdfDocInfo Class
- PdfDocument Class
- PdfDocument Class
- PdfDocument Members
- PdfDocument Constructor
- Properties
- Methods
- Methods
- Clone Method
- Extract Method
- Merge Method
- Print Method
- Save Method
- Split Method
- PdfDocumentEventArgs Class
- PdfDocumentSecurity Class
- PdfField Class
- PdfFieldCollection Class
- PdfGenericField Class
- PdfGoToAction Class
- PdfJavaScriptAction Class
- PdfLaunchAction Class
- PdfLink Class
- PdfListBoxField Class
- PdfListField Class
- PdfListItem Class
- PdfListItemCollection Class
- PdfObject Class
- PdfOnOffField Class
- PdfPage Class
- PdfPageCollection Class
- PdfPageEventArgs Class
- PdfPageLocation Class
- PdfPageRectangle Class
- PdfPageSizes Class
- PdfPortfolio Class
- PdfPushButtonField Class
- PdfRadioButtonField Class
- PdfRadioButtonGroup Class
- PdfRender Class
- PdfSigner Class
- PdfTextField Class
- PdfUriAction Class
- PdfViewerException Class
- PdfViewerPreference Class
- Runtime Class
- YRange Class
- Interfaces
- Enumerations
- Delegates
- EO.Pdf.Acm
- EO.Pdf.Contents
- EO.Pdf.Drawing
- EO.Pdf.Mvc
- EO.Web
- EO.WebBrowser
- EO.WebBrowser.DOM
- EO.WebEngine
- EO.WinForm
- EO.Wpf
- EO.Wpf.Gauge
- EO.Wpf.Gauge.Shapes
- EO.Wpf.Primitives
- EO.Wpf.Themes.Aero
- EO.Wpf.Themes.Classic
- EO.Wpf.Themes.Luna
- EO.Wpf.Themes.Metro
- EO.Wpf.Themes.Royale
- JavaScript API Reference
- .NET API Reference
PdfDocument.Split Method |
Splits the current PdfDocument into multiple PdfDocument objects.

Parameters
- pageIndexes
- The indexes of the page where split occurs. See remark section for more details.
Return Value
-
An array of PdfDocument objects.

This function splits a PdfDocument at the specified position. For example, the following code splits the current PdfDocument into two PdfDocument objects: the first one contains the first 2 pages and the second contains all the remaining pages:
//Split doc from the third page
PdfDocument[] docs = doc.Split(2);
The following code splits the current PdfDocument into three PdfDocument objects: the first one contains the first 2 pages, the second one contains the third page and the third one contains all the remaining pages.
//Split doc at the third page and the fourth page
PdfDocument[] docs = doc.Split(2, 3);
Each "child" PdfDocument must contain at least one page, otherwise an error will be thrown. For example, the following code will throw an error because the first "child" PdfDocument would have zero pages.
//This code will throw an error because the first child
//PdfDocument would have zero pages
PdfDocument[] docs = doc.Split(0);
