Skip to content

Commit 7204c81

Browse files
committed
[add] header/footer config settings for pdf()/png() methods
1 parent 77e7cd8 commit 7204c81

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/api/export/pdf_method.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ pdf(config?: object): void;
4848
- `title` - (optional) the document name
4949
- `pageNumber` - (optional) the current page number
5050
- `totalPages` - (optional) the total number of pages in the document
51+
- `header?: string` - (optional) an HTML template for the header in the exported file
52+
- `footer?: string` - (optional) an HTML template for the footer in the exported file
5153

5254
### Example
5355

docs/api/export/png_method.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ png(config?: object): void;
2323
### Parameters
2424

2525
- `config` - (optional) an object with export settings. You can specify the following settings for export to PNG:
26-
- `url?: string` - the url of the service that executes export and returns an exported file. This setting is optional, you should use it only if you need to specify the path to your local export service. The default value is `https://export.dhtmlx.com/diagram/png/5.0.0`
27-
- `name?: string` - the name of the exported file
26+
- `url?: string` - (optional) the url of the service that executes export and returns an exported file. This setting is optional, you should use it only if you need to specify the path to your local export service. The default value is `https://export.dhtmlx.com/diagram/png/5.0.0`
27+
- `name?: string` - (optional) the name of the exported file
28+
- `header?: string` - (optional) an HTML template for the header in the exported file
29+
- `footer?: string` - (optional) an HTML template for the footer in the exported file
2830

2931
### Example
3032

0 commit comments

Comments
 (0)