Table of Contents

Method GetAllPageSizes

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

GetAllPageSizes()

Returns the intrinsic width and height of every page in a single batch call. Faster than calling GetPageWidth(int) / GetPageHeight(int) in a loop because the underlying document or image is resolved only once, and for PDFs each page size is fetched through a single native call rather than two. Units follow the underlying format: points (1/72 in) for PDFs, pixels for images.

public (float Width, float Height)[] GetAllPageSizes()

Returns

(float Width, float Height)[]

An array of length PageCount. Each entry is (1, 1) when the underlying content is not paginated.

Share