Skip to content Skip to sidebar Skip to footer

Creating A File In Javascript Using The Available Bytestream

Is there any way to create a file (eg: a PDF) in JavaScript by setting its mime type, title, content, etc and display it in the browser with the option to download? I have a Base64

Solution 1:

it may help you try this way put pdf in the zip file, why zip? because The only way to make a pdf force download is by placing it in a .zip ,browser will get identify the things what to do with it link here

example here to make zip file download with the pdf

Post a Comment for "Creating A File In Javascript Using The Available Bytestream"