PageSet constructor

PageSet(page)

Creates an one-page set based on exact page index.

PageSet(page: number)
ParameterTypeDescription
pagenumberZero-based index of the page.

Remarks

If a page is encountered that is not in the document, an exception will be thrown during rendering. int.MaxValue C# constant means the last page in the document.

PageSet(pages) {#number[]}

Creates a page set based on exact page indices.

PageSet(pages: number[])
ParameterTypeDescription
pagesnumber[]Zero-based indices of pages.

Remarks

If a page is encountered that is not in the document, an exception will be thrown during rendering. int.MaxValue C# constant means the last page in the document.

PageSet(ranges) {#pagerange[]}

Creates a page set based on ranges.

PageSet(ranges: Aspose.Words.Saving.PageRange[])
ParameterTypeDescription
rangesPageRange[]Array of page ranges.

Remarks

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.

See Also