Skip to content

Commit 8a868ff

Browse files
committed
Added parameter and constants for hr styles
Signed-off-by: Vishal <[email protected]>
1 parent 3ecb7d4 commit 8a868ff

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ full fledged examples can be found under `example/`
8383
- `lang` <?[String]> language localization code for spell checker to work properly. Defaults to `en-US`.
8484
- `preProcessing` <?[Object]>
8585
- `skipHTMLMinify` <?[Boolean]> flag to skip minification of HTML. Defaults to `false`.
86+
- `hrStyles` <?[Object]>
87+
- `val` <String> The border style (e.g., `single`, `dashed`). Defaults to `single`.
88+
- `sz` <Number> The size of the border. Defaults to `24`.
89+
- `space` <Number> The space around border. Defaults to `1`.
90+
- `color` <String> The color of the border. Defaults to `000000`.
8691
- `footerHTMLString` <[String]> clean html string equivalent of footer. Defaults to `<p></p>` if footer flag is `true`.
8792

8893
### Returns

src/constants.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ const defaultTableBorderAttributeOptions = {
3434
size: 1,
3535
stroke: 'single',
3636
};
37+
const defaultHorizontalRuleOptions = {
38+
val: 'single',
39+
sz: '24',
40+
space: '1',
41+
color: '000000',
42+
};
3743
const defaultDocumentOptions = {
3844
orientation: defaultOrientation,
3945
margins: cloneDeep(portraitMargins),
@@ -124,6 +130,7 @@ export {
124130
defaultDocumentOptions,
125131
defaultTableBorderOptions,
126132
defaultHTMLString,
133+
defaultHorizontalRuleOptions,
127134
relsFolderName,
128135
headerFileName,
129136
footerFileName,

0 commit comments

Comments
 (0)