PDF viewer does not work with JavaScript

Contributor

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.

 

image.png

3 Replies

I also have this issue and I'm disappointed to see no one had replied to this. I also found a similar thread here TypeError: this.info.toSource is not a function : chrome (reddit.com). If someone has any solution please post here.

@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

@ktumkur @ARandomGuy 

 

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