Skip to main content
Inspiring
January 5, 2024
Question

Apply a restriction to allow opening only in Acrobat Reader

  • January 5, 2024
  • 5 replies
  • 3644 views

I have generated a PDF file, which includes a pop-up awareness message recommending the use of Acrobat Reader to fill out the form. However, users continue to ignore this message and fill out the form via web browsers and other applications such as Sumatra, Foxit, Nitro, and others.

I have come across some discussions related to this topic but haven't managed to understand what can and cannot work. One of the solutions mentioned was something related to the attached file, but I'm unsure if it will work or not. Additionally, I don't know how it was implemented.

If anyone could kindly explain whether the attached solution might work, I would appreciate it. Also, if possible, please provide instructions on how to apply the same solution to my PDF file, which contains Java content that I've tried copying more or less but without success.

Thank you very much for your kind help.

 

 

This topic has been closed for replies.

5 replies

JR Boulay
Community Expert
June 24, 2024

I don't know, I'm an Acrobat expert, not a Firefox one.

But you should use only this line:

this.getField("cache").display = display.hidden;

If it doesn't work, the rest won't work either, especially the conditions.

Acrobate du PDF, InDesigner et Photoshopographe
JR Boulay
Community Expert
January 12, 2024

I re-tested these two documents today, both works fine with Acrobat, with Foxit Reader and with MS Edge.

With Qoppa PDF Studio only the layer tip works, not the hidden field.

I can't test with Chrome because I don't want to install this spyware on my computer.

Acrobate du PDF, InDesigner et Photoshopographe
KaxkulAuthor
Inspiring
January 14, 2024

Thanks, @JR Boulay ! I'm trying another approach by hiding whole template pages and giving users the option to choose (By selecting Yes will show the hidden pages). Assuming that if any other tools are disabling JavaScript, it will not work in all cases. It works fine, but when I'm trying to implement security over the document, the function is not working 😞

JR Boulay
Community Expert
January 7, 2024

"I have generated a PDF file, which includes a pop-up awareness message recommending the use of Acrobat Reader to fill out the form. However, users continue to ignore this message and fill out the form via web browsers and other applications such as Sumatra, Foxit, Nitro, and others."

This makes complete sense: software that doesn't support AcroForms and/or JavaScript can't display your alert, so users won't see it.

Acrobate du PDF, InDesigner et Photoshopographe
JR Boulay
Community Expert
January 7, 2024
Acrobate du PDF, InDesigner et Photoshopographe
KaxkulAuthor
Inspiring
January 8, 2024

Thanks @JR Boulay . Should that solution work with Sumatra, Foxit, Nitro, and others as well?

KaxkulAuthor
Inspiring
January 12, 2024

I only tested with Acrobat and Foxit Reader.


Thanks @JR Boulay 

I downloaded the two example files from the shared link and tested both in Foxit; unfortunately, they didn't work. Except when the JavaScript option has been enabled, but even then, the layer example still didn't work. Not sure if I'm doing something wrong or what?!!

try67
Community Expert
January 5, 2024