Documentation
¶
Overview ¶
Package pages provides page range parsing and validation for pdf-cli.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandPageRanges ¶
ExpandPageRanges expands a slice of PageRange to individual page numbers.
func FormatPageRanges ¶
FormatPageRanges converts a slice of page numbers back to a compact range string.
func ParseAndExpandPages ¶
ParseAndExpandPages parses a page range string and returns individual page numbers.
func ParseReorderSequence ¶
ParseReorderSequence parses a reorder sequence string and returns the page numbers in order. Supports individual pages (1,3,5), ranges (1-10), special values (end), reverse ranges (10-1), and page duplication (1,2,3,1 repeats page 1 at the end).
func ValidatePageNumbers ¶
ValidatePageNumbers checks if all page numbers are within the valid range.
Types ¶
Click to show internal directories.
Click to hide internal directories.