Skip to main content
_AWID_
Inspiring
January 6, 2025
Answered

Open PDF-File with Javascript

  • January 6, 2025
  • 1 reply
  • 377 views

Hi.

 

Refering to my last post I have a following question.

I checked an InDesign document with the script. The check results were saved as a PDF. Is it possible to open this PDF document with Javascript in Acrobat (with a command at the end of the same script)?

 

Regards

Correct answer _AWID_

Okay, I don't know if this topic is too trivial or a big secret. 🙂

I found very little information about it on the internet. The only hint I found was (adapted to my needs):

 

var myPDF = File(path + DocName + ".pdf"); 
    myPDF.execute(); 

Anyway, this is what I wanted and it works. Maybe it will be helpful for another amateur in Java scripting.

1 reply

_AWID_
_AWID_AuthorCorrect answer
Inspiring
January 7, 2025

Okay, I don't know if this topic is too trivial or a big secret. 🙂

I found very little information about it on the internet. The only hint I found was (adapted to my needs):

 

var myPDF = File(path + DocName + ".pdf"); 
    myPDF.execute(); 

Anyway, this is what I wanted and it works. Maybe it will be helpful for another amateur in Java scripting.