Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const doc = core.getDocument();
- return doc.getFileData(downloadOptions).then(
- data => {
- const arr = new Uint8Array(data);
- if (isIE) {
- file = new Blob([arr], { type: 'application/pdf' });
- } else {
- file = new File([arr], downloadName, { type: 'application/pdf' });
- }
- saveAs(file, downloadName);
- dispatch(actions.closeElement('loadingModal'));
- fireEvent('finishedSavingPDF');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement