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

Need help with Published MasterControl documents

New Here ,
Nov 24, 2023 Nov 24, 2023

Copy link to clipboard

Copied

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

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

TOPICS
How to , JavaScript , PDF

Views

682

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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