PDF viewer does not work with JavaScript

%3CLINGO-SUB%20id%3D%22lingo-sub-1122120%22%20slang%3D%22en-US%22%3EPDF%20viewer%20does%20not%20work%20with%20JavaScript%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1122120%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20of%20our%20corporate%20documents%20are%20managed%20in%20a%20document%20solution%20that%20generates%20PDF%20files%20from%20the%20documents%20with%20a%20specific%20header%20in%20the%20document%20stating%20when%20they%20have%20been%20requested%20etc.%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20header%20uses%20JavaScript%20build%20into%20the%20PDF%20which%20works%20just%20fine%20in%20Adobe%20Acrobat%20Reader%2C%20Internet%20Explorer%20(as%20it%20uses%20Acrobat%20Reader)%20etc.%3CBR%20%2F%3EBut%20sadly%20in%20Edge%20it%20only%20loads%20the%20top%20of%20the%20header%20on%20each%20page%20and%20displays%20an%20error%20saying%3A%20%22TypeError%3A%20this.info.toSource%20is%20not%20a%20function%22.%20The%20rest%20of%20each%20page%20is%20missing%20(see%20screenshot%20below)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20means%20that%20thousands%20of%20documents%20that%20cannot%20be%20viewed%20with%20the%20build-in%20PDF%20viewer%20in%20Edge%2C%20but%20we%20have%20to%20manually%20download%20the%20file%20and%20then%20open%20it%20in%20Adobe%20Reader.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20933px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166501i0CC1BC4BE9A54693%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1122120%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EJavaScript%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPDF%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
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

0 Replies