docs: document printToPDF generateDocumentOutline option (#41156)

* doc: document printToPDF generateDocumentOutline option

* doc: ready event to whenReady
This commit is contained in:
Shelley Vohr 2024-01-30 16:55:03 +01:00 committed by GitHub
parent fc917985ae
commit 6786fde576
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 20 additions and 13 deletions

View file

@ -2039,7 +2039,9 @@ describe('webContents module', () => {
pageRanges: { oops: 'im-not-the-right-key' },
headerTemplate: [1, 2, 3],
footerTemplate: [4, 5, 6],
preferCSSPageSize: 'no'
preferCSSPageSize: 'no',
generateTaggedPDF: 'wtf',
generateDocumentOutline: [7, 8, 9]
};
await w.loadURL('data:text/html,<h1>Hello, World!</h1>');