Forum Discussion

ToMMeR's avatar
ToMMeR
Brass Contributor
Jan 22, 2020

PDF viewer does not work with JavaScript

Hi

 

All of our corporate documents are managed in a document solution that generates PDF files from the documents with a specific header in the document stating when they have been requested etc.

This header uses JavaScript build into the PDF which works just fine in Adobe Acrobat Reader, Internet Explorer (as it uses Acrobat Reader) etc.
But sadly in Edge it only loads the top of the header on each page and displays an error saying: "TypeError: this.info.toSource is not a function". The rest of each page is missing (see screenshot below)

 

This means that thousands of documents that cannot be viewed with the build-in PDF viewer in Edge, but we have to manually download the file and then open it in Adobe Reader.

 

6 Replies

  • vlmn's avatar
    vlmn
    Copper Contributor

    It's 2025 and I am still having this issue. Are you ever going to fix this, Microsoft?

  • Smriti810's avatar
    Smriti810
    Copper Contributor
    Any leads on this , i am facing the same issue in my organisation and its really frustrating . any solution will be appretiated.
  • ARandomGuy's avatar
    ARandomGuy
    Copper Contributor

    I also have this issue and I'm disappointed to see no one had replied to this. I also found a similar thread here https://www.reddit.com/r/chrome/comments/j4lax6/typeerror_thisinfotosource_is_not_a_function/. If someone has any solution please post here.

    • ktumkur's avatar
      ktumkur
      Copper Contributor

      ARandomGuy 

       

      If any respite, Firefox is better. Does render the document. But also mentions about the issue, suggesting to use a native app like Acrobat to render outside the browser.

       

      Regards

      • Dev-lead's avatar
        Dev-lead
        Copper Contributor

        ktumkur ARandomGuy 

         

        I am facing the same issue. Curious to understand how these files are created. Can you let me know please.

Resources