Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
295 B
3
Indexable
Never
let element = document.createElement('a');
element.setAttribute('href', 'data:application/pdf;base64,' + response);
element.setAttribute('download', 'myzip.pdf');

element.style.display = 'none';
document.body.appendChild(element);

element.click();

document.body.removeChild(element);
Leave a Comment