Skip to main content
Participant
March 7, 2025
Question

How can i detect if pdf is opened in program or adobe website extension?

  • March 7, 2025
  • 2 replies
  • 1022 views

I need to detect if pdf is opened in program or adobe website extension. Adobe website extension displays pdf (i have form inside) different than its showed in program. I need to check where is it opened and move form fields. Any help would be appreciated.

2 replies

Participant
March 7, 2025

I need to check it via js.

try67
Community Expert
Community Expert
March 7, 2025

So you want to check if a specific file is opened in the app? What you can do is scan the app.activeDocs array and check the path property of each item in it, and compare it to the path of the file you're interested in. However, this must be done from a privileged context, such as the JS Console.

Participant
March 7, 2025

Thanks for help but unfortunatelly this wont work in my case.

Rene Andritsch
Community Expert
Community Expert
March 7, 2025

On Windows and Mac you can check the files infos or properties and set the app to open the PDF with.

Participant
March 7, 2025

Oh i might forgot to add that i need to check it via js. These pdfs are available on a websice for customers to fill