Forwarding PDFs with Axios

Ahmed

Ahmed Hesham

Trying to integrate with an E-commerce platform for a mobile app by sending PDF invoices through a node express app

Axios

So the idea was to fetch the PDF data and return it to the client
Testing this endpoint, a blank PDF document response was returned
Going through multiple forms and docs, trying different methods to achieve the same end result
Until I found the answer when I was just giving up where axios have a problem with requesting PDF
Where { responseType: 'arraybuffer' } is provided to axios options api
Like this project

Posted Dec 3, 2023

Trying to integrate with an E-commerce platform for a mobile app by sending PDF invoices through a no... Tagged with node, axios, pdf.

Likes

0

Views

1