PagesSelector

Inheritance: java.lang.Object

public class PagesSelector

Constructors

Constructor Description
PagesSelector()

Methods

Method Description
getPages(boolean allPages, PagesSetup pagesSetup, int totalPages, System.Nullable pageNumber) 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 pageNumber)

public static System.Collections.Generic.List<Integer> getPages(boolean allPages, PagesSetup pagesSetup, int totalPages, System.Nullable<Integer> pageNumber)

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.
pageNumber com.aspose.ms.System.Nullable<java.lang.Integer> The specific page number.

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.