Skip to main content
Participant
January 5, 2021
Question

How to open pdf in Acobat Reader from JavaScript

  • January 5, 2021
  • 0 replies
  • 391 views

Dear people,

I try to open a pdf file from JavaScript via browser, but I am failing with the correct syntax. 

 

window.location.replace("acrobat://C:/path/to/file.pdf") opens the Acrobat Reader correctly but it always claims that the syntax is wrong. Initially I try to open a file from SharePoint via Webdav but that seems to be the second step. The simple example from above does not work. What is the correct syntax? I searched the whole internet for an answer but was not succesfull. Help is very much appreciated!

 

 

This topic has been closed for replies.