Skip to main content
Participant
November 24, 2023
Frage

Need help with Published MasterControl documents

  • November 24, 2023
  • 2 Antworten
  • 7366 Ansichten

Hi,

 

I am trying to open a PDF using Acrobat Chrome Pluging, but getting error as 

TypeError: this.info.toSource is not a function 

 

"Published MasterControl documents frequently use JavaScript. If you are seeing this message, your viewer either does not support JavaScript or it is disabled. If you are using Adobe Acrobat, please enable JavaScript. If you are using another viewer, you will need to configure your browser to view PDF files externally in Adobe Acrobat."

 

Attached is the document. Kindly help us to view the document in browser.

Dieses Thema wurde für Antworten geschlossen.

2 Antworten

JR Boulay
Community Expert
Community Expert
November 29, 2023

This is a good use of the tip presented in this article (copy-paste the URL into Google Translate):

https://www.abracadabrapdf.net/ressources-et-tutos/js-et-formulaires-ressources/forcer-utilisation-pdf-avec-un-vrai-pdf-reader/

Acrobate du PDF, InDesigner et Photoshopographe
Thom Parker
Community Expert
Community Expert
November 24, 2023

You can't, at least without modifying the PDF. 

Each page in the document has a form field obscuring the page text. A document script is used to hide the form field. If the viewer doesn't run JavaScript, then the form feild can't be hidden. There is also a built-in expiration date that if passed, will prevent the pages from being viewed. 

 

You can easily bypass these measures  by opening the document in Acrobat and deleting the form fields or hiding them. 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often