AngularJS: IE Access Denied displaying PDF -
while trying display pdf blob on ie, receive access denied error.
html file
<object ng-show="{{content}}" data="{{content}}" type="application/pdf"></object>
js file
$http.post('/api',{}, { responsetype: 'arraybuffer' }) .success(function (response) { var file = new blob([response], { type: 'application/pdf' }); var fileurl = window.url.createobjecturl(file); $scope.content = $sce.trustasresourceurl(fileurl); });
when using embed instead, acrobat pdf viewer unable view temporary file.
Comments
Post a Comment