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:
parent
1bc5024d7d
commit
b3d0055177
4 changed files with 88 additions and 28 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue