Skip to content

[Feature] Add Structs to Transfer and Apply docDefaults Properties #6382

Description

@ShipIM

Initial checklist

  • Is this really a problem?
  • I have searched the Github Issues for similar issues, but did not find anything.

Problem

Currently, there are structures to transfer and apply default properties for text runs (RunDefaults)

export interface IDocumentStyle extends IDocStyleBase, IDocumentLayout, IHeaderAndFooterBase {
    textStyle?: ITextStyle; // default style for text
}

And some properties in IDocumentLayout for paragraphs options

paragraphLineGapDefault?: number; // paragraphLineGapDefault default line spacing

But there is no equivalent full support. I would like to propose adding structures to handle paragraph defaults (ParagraphDefaults) so that default formatting such as alignment, indentation, spacing, and line height can be applied to paragraphs.

<w:pPrDefault>
  <w:pPr>
    <w:spacing w:after="160" w:line="259" w:lineRule="auto"/>
  </w:pPr>
</w:pPrDefault>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions