API reference / Common / PageRect
Type Alias: PageRect
ts
type PageRect = Rect;A rectangle on a page, in the page's own space: document points (1/72 inch) from the page's top-left corner, y growing down, as the page is laid out before any turn it is shown at — a PDF page's /Rotate, or UDocBase.setPageRotation's. x0, y0 is its top-left corner and x1, y1 its bottom-right. A PDF page is laid out at its media box, so its corner is that box's; a crop box only clips what shows.
An annotation's rect is one, and a search match's quads are in the same space, so either passes straight to UDocBase.goToRect. It is the engine's Rect, named for the space it is in, apart from Rect: a box on screen, in CSS px.