Skip to content

zeropdf v1.3.0


zeropdf / PlacedTextBlockResult

Interface: PlacedTextBlockResult

Defined in: src/types.ts:1020

Result of PdfPage.placeTextBlock: the drawn block metrics plus the next y to continue at.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
endYnumberThe y below the drawn block — where the next element can start (accounts for the page origin).-src/types.ts:1022
heightnumberTotal height in PDF points (line count × line height).BlockTextMetrics.heightsrc/types.ts:1008
lineCountnumberNumber of lines after wrapping.BlockTextMetrics.lineCountsrc/types.ts:1010
widthnumberWidth of the longest rendered line in PDF points.BlockTextMetrics.widthsrc/types.ts:1006

Released under the ISC license.