shim pdf print

This commit is contained in:
Nystik
2026-03-13 19:57:37 +01:00
parent 610af0c4b1
commit 30590be9e3
4 changed files with 29 additions and 5 deletions

View File

@@ -165,6 +165,13 @@ const currentWebContents = {
this._windowOpenHandler = handler;
},
printToPDF(options) {
return new Promise((resolve) => {
window.print();
resolve(Buffer.from([]));
});
},
capturePage(rect) {
// TODO: could use html2canvas
console.log("[shim:webContents] capturePage (stub)");