Table of Contents

Method GetPageIndexes

Namespace
LMKit.Document
Assembly
LM-Kit.NET.dll

GetPageIndexes(Attachment, string)

Parses a page range string and returns a sorted list of zero-based page indexes valid for the specified Attachment.

public static List<int> GetPageIndexes(Attachment attachment, string pageRange)

Parameters

attachment Attachment

The attachment whose PageCount defines the valid range.

pageRange string

A page range string using 1-based page numbers (e.g., "1-5, 7, 9-12"). If null, empty, or "*", all pages are returned.

Returns

List<int>

A sorted list of zero-based page indexes within the valid range.

GetPageIndexes(string, int)

Parses a page range string and returns a sorted list of zero-based page indexes.

public static List<int> GetPageIndexes(string pageRange, int pageCount)

Parameters

pageRange string

A page range string using 1-based page numbers (e.g., "1-5, 7, 9-12"). If null, empty, or "*", all pages are returned.

pageCount int

Total number of pages in the document. Must be positive; otherwise an empty list is returned.

Returns

List<int>

A sorted list of zero-based page indexes within the valid range.

Share