My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Save Octet-stream data as PDF file in javascript

Sriram Karthick.G's photo
Sriram Karthick.G
·Mar 25, 2020

Scenario 1:

Need to convert the below mentioned stream data into file in nodejs

Stream data sample: gist.github.com/sriramgroot/33e6e4934081f3d..


Scenario 2:

Need to convert the below mentioned stream data into file in browser using reactjs framework

Stream data sample: gist.github.com/sriramgroot/33e6e4934081f3d..


Response Header

Screenshot 2020-03-25 at 11.01.40 AM.png

Note: Final output should be a PDF file and it should be blank document