PagesSelector
Contents
[
Hide
]
Inheritance: java.lang.Object
public class PagesSelector
Constructors
| Constructor | Description |
|---|---|
| PagesSelector() |
Methods
| Method | Description |
|---|---|
| getPages(boolean allPages, PagesSetup pagesSetup, int totalPages, System.Nullable |
Gets a list of pages based on the specified setup. |
| getPages(boolean allPages, PagesSetup pagesSetup, int totalPages, int[] pageNumbers, boolean fromOne) | Gets a list of selected pages based on the specified criteria. |
PagesSelector()
public PagesSelector()
getPages(boolean allPages, PagesSetup pagesSetup, int totalPages, System.Nullable pageIndex)
public static System.Collections.Generic.List<Integer> getPages(boolean allPages, PagesSetup pagesSetup, int totalPages, System.Nullable<Integer> pageIndex)
Gets a list of pages based on the specified setup.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| allPages | boolean | Whether to include all pages. |
| pagesSetup | PagesSetup | The pages setup configuration. |
| totalPages | int | The total number of pages. |
| pageIndex | com.aspose.ms.System.Nullable<java.lang.Integer> | The specific page index (starting with 0). |
Returns: com.aspose.ms.System.Collections.Generic.List<java.lang.Integer> - A list of pages based on the specified setup.
getPages(boolean allPages, PagesSetup pagesSetup, int totalPages, int[] pageNumbers, boolean fromOne)
public static System.Collections.Generic.List<Integer> getPages(boolean allPages, PagesSetup pagesSetup, int totalPages, int[] pageNumbers, boolean fromOne)
Gets a list of selected pages based on the specified criteria.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| allPages | boolean | A flag indicating whether to include all pages. |
| pagesSetup | PagesSetup | The setup configuration for pages. |
| totalPages | int | The total number of pages in the document. |
| pageNumbers | int[] | An array of specific page numbers to include. |
| fromOne | boolean |
Returns: com.aspose.ms.System.Collections.Generic.List<java.lang.Integer> - A sorted and distinct list of selected page numbers.