PdfTextRun
One laid-out piece of text on a rendered PDF page.
The library emits a PdfTextRun for every wrapped line / styled segment that reaches the canvas during rendering, capturing exactly what was drawn and where. Consumers — most notably :pdfkmp-viewer — use these runs to overlay an invisible, selectable text layer on top of the rasterised preview, mirroring how Adobe Reader / Apple Books / Samsung Notes implement copy-paste over a vector PDF.
Coordinates are in PDF points (1 pt = 1/72 in), with a top-left origin and Y growing downward — matching the rest of the public surface (com.conamobile.pdfkmp.render.PdfCanvas). The bounding box is (xPoints, yPoints, widthPoints, heightPoints). widthPoints is the advance width of the run's glyphs and heightPoints is ascent + descent of the active style's font, so the rectangle approximates the visible glyph footprint rather than a typographic line slot.
Page numbering is zero-based and follows the order in which the driver produced pages. Slicing breaks and explicit MoveToNextPage calls each advance the index, matching the page indices a downstream PDF reader sees.