com.aspose.words
Class PageSet

java.lang.Object
    extended by com.aspose.words.PageSet

public class PageSet 
extends java.lang.Object

Describes a random set of pages.

Constructor Summary
PageSet(int[] pages)
           Creates a page set based on exact page indices.
PageSet(PageRange[] ranges)
           Creates a page set based on ranges.
 
Property Getters/Setters Summary
static PageSetgetAll()
           Gets a set with all the pages of the document in their original order.
static PageSetgetEven()
           Gets a set with all the even pages of the document in their original order.
static PageSetgetOdd()
           Gets a set with all the odd pages of the document in their original order.
 

Constructor Detail

PageSet

public PageSet(int[] pages)
Creates a page set based on exact page indices. If a page is encountered that is not in the document, an exception will be thrown during rendering. MaxValue means the last page in the document.
Parameters:
pages - Zero-based indices of pages.

PageSet

public PageSet(PageRange[] ranges)
Creates a page set based on ranges. If a range is encountered that starts after the last page in the document, an exception will be thrown during rendering. All ranges that end after the last page are truncated to fit in the document.
Parameters:
ranges - Array of page ranges.

Property Getters/Setters Detail

getAll

public static PageSet getAll()
Gets a set with all the pages of the document in their original order.

getEven

public static PageSet getEven()
Gets a set with all the even pages of the document in their original order. Even pages have odd indices since page indices are zero-based.

getOdd

public static PageSet getOdd()
Gets a set with all the odd pages of the document in their original order. Odd pages have even indices since page indices are zero-based.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.