Package com.ironsoftware.ironpdf.edit
Class PageSelection
- java.lang.Object
- 
- com.ironsoftware.ironpdf.internal.staticapi.InternalPageSelection
- 
- com.ironsoftware.ironpdf.edit.PageSelection
 
 
- 
 public class PageSelection extends InternalPageSelection 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
- 
- 
Field Summary- 
Fields inherited from class com.ironsoftware.ironpdf.internal.staticapi.InternalPageSelectionpagesList
 
- 
 - 
Constructor SummaryConstructors Constructor Description PageSelection()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static PageSelectionallPages()Every page of the PDF.static PageSelectionfirstPage()First page (page index 0).static PageSelectionlastPage()First page (page index 0).static PageSelectionpageRange(int startIndex, int endIndex)The selection of pages to be used.static PageSelectionpageRange(List<Integer> pageList)PageSelection factory.static PageSelectionsinglePage(int pageIndex)Specific page index.
 
- 
- 
- 
Method Detail- 
allPagespublic static PageSelection allPages() Every page of the PDF.- Returns:
- all pages selection
 
 - 
singlePagepublic static PageSelection singlePage(int pageIndex) Specific page index.Note: Page 1 has index 0 - Parameters:
- pageIndex- the page index
- Returns:
- a single page selection
 
 - 
firstPagepublic static PageSelection firstPage() First page (page index 0).- Returns:
- the first page selection
 
 - 
lastPagepublic static PageSelection lastPage() First page (page index 0).- Returns:
- the page selection
 
 - 
pageRangepublic static PageSelection pageRange(int startIndex, int endIndex) The 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
 
 - 
pageRangepublic static PageSelection pageRange(List<Integer> pageList) PageSelection 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
 
 
- 
 
-