Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
7

Need help with Published MasterControl documents

New Here ,
Nov 24, 2023 Nov 24, 2023

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."

 

Priyanka33825818wwrh_0-1700815851333.pngexpand image

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

TOPICS
How to , JavaScript , PDF
5.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 24, 2023 Nov 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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2023 Nov 29, 2023
LATEST

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-p...


Acrobate du PDF, InDesigner et Photoshoptographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines