dolanmiu / docx

Easily generate and modify .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.

Home Page:https://docx.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can not set indent by chars

xiezongrong opened this issue · comments

now I can set indent by use
indent: { firstLine: 450 }
but how to set indent by chars?

Not possible im afraid, thats not how the OOXML spec operates

I have addition to this, the public OOXML has only w:firstLine which is twips,
But Word has w:firstLineChars which is extension to the format docxjs follows
https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.indentation?view=openxml-2.8.1
@dolanmiu should that be implemented then? Its similarly out of the OOXML as this #1036