Saving Post Request Response to PDF file

Job ID: 35103880

Budget: $10 – $30 USD

I can't figure out how to save a post request response to a pdf. The response can be parsed into a pdf by postman but the one I parsed on my node js server comes out corrupted.

I have the 2 files on hand but I can't share it on the project. If you are interested in the project drop me a line and I will send it over to you so you can run analysis on it.

For context this is the 2 lines we will be figuring out.
const base64Str = Buffer.from(pdfrawfile);
fs.writeFileSync('some.pdf', base64Str);
Related categories: JavaScript Node.js Express JS