Nutrient Web SDK
    Preparing search index...

    Type Alias TextBlock

    Describes the properties of a text block detected on a page.

    Contains the text, the bounding box in PDF coordinates, and the anchor point.

    type TextBlock = {
        anchor: { x: number; y: number };
        boundingBox: { height: number; left: number; top: number; width: number };
        id: string;
        maxWidth: number;
        text: string;
    }
    Index

    Properties

    anchor: { x: number; y: number }

    The anchor point of the text block.

    boundingBox: { height: number; left: number; top: number; width: number }

    The current bounding box of the text block, in PDF coordinates.

    Type Declaration

    • height: number

      The height of the bounding box.

    • left: number

      The left coordinate of the bounding box.

    • top: number

      The top coordinate of the bounding box.

    • width: number

      The width of the bounding box.

    id: string

    Unique identifier for the text block.

    maxWidth: number

    The maximum width of the text block.

    text: string

    The text content of the text block.