diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 03586c0064884..7408467e6c28d 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -1472,12 +1472,7 @@ win.webContents.print(options, (success, errorType) => { * `right` number (optional) - Right margin in inches. Defaults to 1cm (~0.4 inches). * `pageRanges` string (optional) - Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages. * `ignoreInvalidPageRanges` boolean (optional) - Whether to silently ignore invalid but successfully parsed page ranges, such as '3-2'. Defaults to false. - * `headerTemplate` string (optional) - HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them: - * `date`: formatted print date - * `title`: document title - * `url`: document location - * `pageNumber`: current page number - * `totalPages`: total pages in the document + * `headerTemplate` string (optional) - HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them: `date` (formatted print date), `title` (document title), `url` (document location), `pageNumber` (current page number) and `totalPages` (total pages in the document). For example, `` would generate span containing the title. * `footerTemplate` string (optional) - HTML template for the print footer. Should use the same format as the `headerTemplate`. * `preferCSSPageSize` boolean (optional) - Whether or not to prefer page size as defined by css. Defaults to false, in which case the content will be scaled to fit the paper size. diff --git a/docs/api/webview-tag.md b/docs/api/webview-tag.md index 38b6dee5ff3d3..edb93c96445d6 100644 --- a/docs/api/webview-tag.md +++ b/docs/api/webview-tag.md @@ -578,12 +578,7 @@ Prints `webview`'s web page. Same as `webContents.print([options])`. * `right` number (optional) - Right margin in inches. Defaults to 1cm (~0.4 inches). * `pageRanges` string (optional) - Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages. * `ignoreInvalidPageRanges` boolean (optional) - Whether to silently ignore invalid but successfully parsed page ranges, such as '3-2'. Defaults to false. - * `headerTemplate` string (optional) - HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them: - * `date`: formatted print date - * `title`: document title - * `url`: document location - * `pageNumber`: current page number - * `totalPages`: total pages in the document + * `headerTemplate` string (optional) - HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them: `date` (formatted print date), `title` (document title), `url` (document location), `pageNumber` (current page number) and `totalPages` (total pages in the document). For example, `` would generate span containing the title. * `footerTemplate` string (optional) - HTML template for the print footer. Should use the same format as the `headerTemplate`. * `preferCSSPageSize` boolean (optional) - Whether or not to prefer page size as defined by css. Defaults to false, in which case the content will be scaled to fit the paper size.