Closed emanuel281 closed 6 years ago
I believe that you are using it wrong. It works perfectly with reactjs. Show your example.
Thanks @amacar for helping me provide an answer!
I've ran into this exact issue too. Downloading a PDF in React results in a blank PDF.
I am using axios
and I had to add responseType: 'blob'
to the axios
config to get the resulting PDF to not be blank.
I tried using this package with Reactjs and it doesn't seem to work. It seems to just save an empty PDF without actually querying the API.