PagesSelector
Leave feedback
On this page
Inheritance: java.lang.Object
public class PagesSelector
| Constructor | Description |
|---|---|
| PagesSelector() |
| 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. |
public PagesSelector()
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.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.