跳转到主要内容
paragraphStyle 元素用于描述单个段落的格式样式。包含一个 fontStyle 元素。具有以下属性:
PropertyData typeDescription
id *string文档中该段落的标识符。
name *string段落样式的名称。
mainFontStyleId *string段落的主字体样式。
role *string段落在文档中的作用。可能的取值:texttableTextheadingtableHeadingpictureCaptiontableCaptioncontentsfootNoteendNotertgarbotherbarcodeheadingNumber
roleLevelinteger角色级别。默认值为 -1,表示此角色没有可用的级别。
align *string段落对齐方式。可能的取值:LeftCenterRightJustifiedUnknown。默认值为 Left
indentLeftinteger左缩进。默认值为 0。
indentRightinteger右缩进。默认值为 0。
indentFirstinteger首行缩进。默认值为 0。
lineSpacinginteger行间距。默认值为 -1,表示自动行距。

FontStyle 元素

fontStyle 元素描述段落中所使用字体的格式样式。具有以下属性:
PropertyData typeDescription
id *string字体样式的标识符。
italicboolean指示该字体样式是否为斜体。
boldboolean指示该字体样式是否为粗体。
underlineboolean指示该字体样式是否带下划线。
strikeoutboolean指示该字体样式是否带删除线。
smallcapsboolean指示字体是否为小型大写字母。
scalinginteger字体缩放比例。默认值为 1000。
spacingboolean字符间距。默认值为 0。
colorboolean字体颜色。默认值为 0。
backgroundColorboolean背景颜色。默认值为 0。
ff *string字体名称。
fs *float字体大小。
星号表示必需属性。