From 9c4535badea54d06f2dc08d3f065a0249ad54a94 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Sat, 1 Feb 2025 16:31:25 +0200 Subject: [PATCH] desktop app(export pdf): enable document outline and PDF tags generation --- src/services/window.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/window.ts b/src/services/window.ts index d8f86379f..ff391875b 100644 --- a/src/services/window.ts +++ b/src/services/window.ts @@ -76,6 +76,8 @@ ipcMain.on("export-as-pdf", async (e, opts: ExportAsPdfOpts) => { try { buffer = await browserWindow.webContents.printToPDF({ landscape: opts.landscape, + generateDocumentOutline: true, + generateTaggedPDF: true, displayHeaderFooter: true, headerTemplate: `
`, footerTemplate: `