Skip to main content
Participant
October 27, 2021
Question

JavaScript でhttpにあるPDFファイルをAcrobatで開きたい。

  • October 27, 2021
  • 1 reply
  • 645 views

When I execute the following code in JavaScript, I get an error like "An error occurred when opening this sentence. File name ~".

I want to know the reason and the solution.

 

var w = new ActiveXObject ("WScript.She'll");

w.Run ("Acrobat.exe http: // ~ .pdf ");
This topic has been closed for replies.

1 reply

Omachi
Legend
October 27, 2021

理由は簡単で、Acrobatはインターネット上のファイルにアクセスできないからです。

何らかの方法でファイルをダウンロードしてください。

Participant
October 27, 2021

返信ありがとうございます。

 

Acrobatでは、インターネット上のファイルをアクセスできないとおっしゃっていますが、

Acrobatで、ファイルを開くで上記の http://を入れると、開けます。 

 

何か違いなどあるのでしょうか?