I am using AngularJs with a REST API. I don\'t have the hand on the REST API. I can store digital object with the API by sending a REST request. I can get it also with a GET req
Maybe you could do something like this?
var a = document.createElement('a'); a.href = 'data:attachment/pdf,' + encodeURI(data); a.target = '_blank'; a.download = 'filename.pdf'; a.click();
You'd just have to make sure that data was in the correct format, which IIRC is base64.
data