1var link = document.createElement('a');
2link.href = url;
3link.download = 'file.pdf';
4link.dispatchEvent(new MouseEvent('click'));
1var link = document.createElement('a');
2link.href = url;
3link.download = 'file.pdf';
4link.dispatchEvent(new MouseEvent('click'));
5