@qrcommunication/gigapdf-lib — SDK API reference - v0.121.0
    Preparing search index...

    Interface GigaParagraphStyle

    Paragraph-level formatting (mirror of model::style::ParagraphStyle).

    interface GigaParagraphStyle {
        align: "left" | "center" | "right" | "justify";
        space_before_pt: number;
        space_after_pt: number;
        indent_left_pt: number;
        indent_right_pt: number;
        first_line_pt: number;
        line_height:
            | { t: "normal" }
            | { t: "multiple"; v: number }
            | { t: "points"; v: number };
        direction?: "ltr" | "rtl";
        soft_breaks?: boolean[];
        page_break_before?: boolean;
    }
    Index

    Properties

    align: "left" | "center" | "right" | "justify"
    space_before_pt: number
    space_after_pt: number
    indent_left_pt: number
    indent_right_pt: number
    first_line_pt: number

    First-line indent (positive) or hanging indent (negative), in points.

    line_height:
        | { t: "normal" }
        | { t: "multiple"; v: number }
        | { t: "points"; v: number }

    Leading policy: font-natural, a size multiple, or a fixed point value.

    direction?: "ltr" | "rtl"

    Base writing direction. Omitted = unspecified (reads as ltr). Set from DOCX w:bidi / PPTX a:pPr@rtl / ODF writing-mode:rl-tb / RTF \rtlpar, and by reconstruction's Unicode strong-script heuristic (>60 % Hebrew/Arabic strong letters). Present since 0.117.0.

    soft_breaks?: boolean[]

    Wrap-vs-deliberate classification of the paragraph's line breaks (reconstruction only): entry k is true when the break between line k and k + 1 is soft (a word-wrap consequence an exporter may re-flow across) and false for a deliberate short line (verse, address). Omitted/empty = not analysed. The {t:'br'} inlines themselves are unchanged. Present since 0.117.0.

    page_break_before?: boolean

    Force a page break before this paragraph (DOCX w:pageBreakBefore, ODF fo:break-before="page") — the authored intent, kept alongside the structural page split so exporters re-emit the property. Additive (omitted when off).