Table of Contents

Method GetPageSize

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

GetPageSize(int)

Returns the intrinsic width and height of a single page. Cheaper than GetAllPageSizes() when only one page is needed: it resolves the underlying document or image once and queries just that page rather than every page. Units follow the underlying format: points (1/72 in) for PDFs, pixels for images.

public (float Width, float Height) GetPageSize(int pageIndex)

Parameters

pageIndex int

Zero-based page index.

Returns

(float Width, float Height)

The page size, or (1, 1) when the content is not paginated.

Share