PeachDrawing.PDF.PdfPageSelector

PdfPageSelector.Select(string, int) Method

The one-based page numbers selector names for a document of pageCount pages, in order.

public static System.Collections.Generic.IReadOnlyList<int> Select(string selector, int pageCount);

Parameters

selector System.String

the text to read

pageCount System.Int32

the number of pages of the document

Returns

System.Collections.Generic.IReadOnlyList<System.Int32>
the selected pages, each from 1 to pageCount

Exceptions

System.FormatException
the text is not a page selector, or names a page outside the document