docs: document printToPDF
generateDocumentOutline
option (#41156)
* doc: document printToPDF generateDocumentOutline option * doc: ready event to whenReady
This commit is contained in:
parent
fc917985ae
commit
6786fde576
4 changed files with 20 additions and 13 deletions
|
@ -235,6 +235,7 @@ WebContents.prototype.printToPDF = async function (options) {
|
|||
pageRanges: checkType(options.pageRanges ?? '', 'string', 'pageRanges'),
|
||||
preferCSSPageSize: checkType(options.preferCSSPageSize ?? false, 'boolean', 'preferCSSPageSize'),
|
||||
generateTaggedPDF: checkType(options.generateTaggedPDF ?? false, 'boolean', 'generateTaggedPDF'),
|
||||
generateDocumentOutline: checkType(options.generateDocumentOutline ?? false, 'boolean', 'generateDocumentOutline'),
|
||||
...parsePageSize(options.pageSize ?? 'letter')
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue