1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

JS-832: basic interface and logic

This commit is contained in:
Mike Mhlv 2022-11-29 21:15:38 +00:00
parent 1bc5024d7d
commit b3d0055177
4 changed files with 88 additions and 28 deletions

View file

@ -172,10 +172,9 @@ class Util {
});
};
printPDF (win, exportPath, name) {
printPDF (win, exportPath, name, options) {
name = String(name || 'untitled').replace(/[^\w -\._]/gi, ' ').trim();
let options = {};
let pdfPath = path.join(exportPath, name + '.pdf');
win.webContents.printToPDF(options).then(data => {