ComPDFKit Web SDK
    Preparing search index...

    Interface SpanObject

    One span of text (spanObjects of getContent; one per paragraph here, with only text and paragraph number).

    interface SpanObject {
        align?: string;
        color?: string;
        fontFamily?: string;
        fontSize?: string;
        fontStyle?: string;
        fontWeight?: string;
        leadingMode?: string;
        paragraphIndex: number;
        startIndent?: string;
        text: string;
        underlineEnd?: number;
        underlineStart?: number;
    }
    Index
    align?: string

    Alignment; not filled in by getContent and ignored by setContent.

    color?: string

    Text color; not filled in by getContent and ignored by setContent.

    fontFamily?: string

    Font family; not filled in by getContent and ignored by setContent.

    fontSize?: string

    Font size; not filled in by getContent and ignored by setContent.

    fontStyle?: string

    Font style; not filled in by getContent and ignored by setContent.

    fontWeight?: string

    Font weight; not filled in by getContent and ignored by setContent.

    leadingMode?: string

    Leading mode; not filled in by getContent and ignored by setContent.

    paragraphIndex: number

    Index (0-based) of the paragraph the span belongs to.

    startIndent?: string

    Start indent; not filled in by getContent and ignored by setContent.

    text: string

    Text of the span.

    underlineEnd?: number

    End of the underline; not filled in by getContent and ignored by setContent.

    underlineStart?: number

    Start of the underline; not filled in by getContent and ignored by setContent.