pdfrx_web
    Preparing search index...

    Interface PdfTextRun

    One positioned text run. x and y locate the text baseline, not the top of its bounding box. A registered fontFace is embedded in the PDF.

    interface PdfTextRun {
        fill?: PdfAnnotationColor | null;
        fontFace: string | null;
        fontSize: number;
        stroke?: PdfAnnotationColor | null;
        strokeWidth?: number;
        text: string;
        transform?: PdfMatrix;
        x: number;
        y: number;
    }
    Index
    fill?: PdfAnnotationColor | null

    Glyph fill. Defaults to opaque black; null disables the fill.

    fontFace: string | null

    Face previously registered with PdfrxEngine.addFontData(), or null for Helvetica.

    fontSize: number

    Font size in page points; must be greater than zero.

    stroke?: PdfAnnotationColor | null

    Glyph outline. Omit or use null for no outline.

    strokeWidth?: number

    Glyph outline width in page points. Default 1.

    text: string

    Unicode text to write. Empty strings produce no page object.

    transform?: PdfMatrix

    Transform applied before the baseline translation (x, y).

    x: number

    Baseline x coordinate in page points.

    y: number

    Baseline y coordinate in page points.