Skip to content

Commit

Permalink
docs:set paper direction api
Browse files Browse the repository at this point in the history
  • Loading branch information
Hufe921 committed Mar 14, 2023
1 parent 82b5256 commit 0963fc1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/guide/command-execute.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,14 @@ instance.command.executePageScaleAdd()
instance.command.executePaperSize(width: number, height: number)
```

## executePaperDirection
功能:设置纸张方向

用法:
```javascript
instance.command.executePaperDirection(paperDirection: PaperDirection)
```

## executeSetPaperMargin
功能:设置纸张页边距

Expand Down
1 change: 1 addition & 0 deletions docs/guide/option.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ interface IEditorOption {
defaultHyperlinkColor?: string; // 默认超链接颜色。默认:#0000FF
headerTop?: number; // 页眉距离上边距。默认:50
header?: IHeader; // 页眉信息。{data:string; color?:string; size?:number; font?:string;}
paperDirection?: PaperDirection; // 纸张方向:纵向、横向
watermark?: IWatermark; // 水印信息。{data:string; color?:string; opacity?:number; size?:number; font?:string;}
control?: IControlOption; // 控件信息。 {placeholderColor?:string; bracketColor?:string; prefix?:string; postfix?:string;}
checkbox?: ICheckboxOption; // 复选框信息。{width?:number; height?:number; gap?:number; lineWidth?:number; fillStyle?:string; fontStyle?: string;}
Expand Down

0 comments on commit 0963fc1

Please sign in to comment.