1

I am using Angularjs and REST to display and retrieve PDF. It works fine in all the browsers except IE. I am using IE10. Getting an error message "Access Denied". Need some help . Is there any way to fix this problem. I am using Object tag in the html page for displaying pdf.

HTML source:

<object  data="{{content}}" type="application/pdf" style="width: 100%; height: 700px;"></object>

Js source:

$http.get(url,{ responseType: 'arraybuffer' }).then(function(response){

                 var file = new Blob([response.data], {type: 'application/pdf'});
                 fileURL = URL.createObjectURL(file);
                 content = $sce.trustAsResourceUrl(fileURL);

                });

Googled a lot but couldn't get a proper solution. Any help is appreciated. Thanks in advance

abhinav singh
  • 856
  • 6
  • 23
  • 45

1 Answers1

0

From here:

https://forums.adobe.com/message/5262172

Which leads here:

https://superuser.com/questions/561036/unable-to-open-ie-10-in-32-bit-mode

"This occurs because the TabProcGrowth registry entry is set to 0, meaning tabs are set to run in the same process as the manager process (64-bit), rather than opening a new process for each tab (32-bit). You can fix this by changing the registry entry here:

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\TabProcGrowth

Set it to something greater than 0, restart IE, and you should see normal behavior resume (and your add-ons should work again). "

Community
  • 1
  • 1
Gusman
  • 14,905
  • 2
  • 34
  • 50
  • Thanks for the reply but there is no TabProcGrowth under HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main in the registry in my system :( – abhinav singh Aug 29 '15 at 05:59
  • create it and restart, it should fix it – Gusman Aug 29 '15 at 06:00
  • Tried but it did not fix the problem – abhinav singh Aug 29 '15 at 21:18
  • I have tried all the possible approaches like using iframes, embed tag etc .None worked for me . With Iframe i am not getting any error msg and i can see the request and response but it is showing blank :( . I am wondering if others have also faced the same issues with Angularjs, PDF and IE combination – abhinav singh Aug 30 '15 at 00:12
  • is it actually uses datauri: for the PDF data? If so then you should be aware of limitations for inline data in IE, check http://stackoverflow.com/questions/1765342/which-browsers-support-data-uris-and-since-which-version – Eugene Sep 01 '15 at 08:29