Package com.ironsoftware.ironpdf.edit
Class PageSelection
java.lang.Object
com.ironsoftware.ironpdf.edit.PageSelection
A PageSelection is a collection of pages from a PDF document.
 
PageSelection can be used to perform operations on a subset of pages from a PDF document.
See: PdfDocument
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic PageSelectionallPages()Every page of the PDF.static PageSelectionFirst page (page index 0).getPageList(InternalPdfDocument internalPdfDocument) Gets page list.static PageSelectionlastPage()First page (page index 0).static PageSelectionpageRange(int startIndex, int endIndex) The selection of pages to be used.static PageSelectionPageSelection factory.static PageSelectionsinglePage(int pageIndex) Specific page index.
- 
Constructor Details- 
PageSelectionpublic PageSelection()
 
- 
- 
Method Details- 
allPagesEvery page of the PDF.- Returns:
- all pages selection
 
- 
singlePageSpecific page index.Note: Page 1 has index 0 - Parameters:
- pageIndex- the page index
- Returns:
- a single page selection
 
- 
firstPageFirst page (page index 0).- Returns:
- the first page selection
 
- 
lastPageFirst page (page index 0).- Returns:
- the page selection
 
- 
pageRangeThe selection of pages to be used.- Parameters:
- startIndex- The index of the first PDF page. Note: Page 1 has index 0
- endIndex- The index of the last PDF page.
- Returns:
- the selected pages selection
 
- 
pageRangePageSelection factory. Generates a list of page indexes to be used.- Parameters:
- pageList- The list of pages index of the PDF. Note: Page 1 has index 0
- Returns:
- the selected pages selection
 
- 
getPageListGets page list.- Parameters:
- internalPdfDocument- the internal pdf document
- Returns:
- the page list
 
 
-