PeachDrawing.PDF
PdfPageSelector Class
Reads the text a caller uses to pick pages of a document: "1,3,5-10", "r3-r1" (the last three), "z-1" (all, reversed),
"1-20:even", "1-10,x3-4" (all but 3 and 4).
public static class PdfPageSelector
Inheritance System.Object → PdfPageSelector
Remarks
- Pages count from 1.
zis the last page,r1too,r2the one before it. - A list is read left to right and the pages come out in the order written, a page named twice appearing twice.
- A range
a-bruns up whena <= band down otherwise; both ends are included. :oddor:evenafter a range keeps the pages at odd or even positions within that range, counting its first page as 1.- An
xbefore a page or range removes those pages from everything selected so far.
| Methods | |
|---|---|
| Select(string, int) | The one-based page numbers selector names for a document of pageCount pages, in order. |