0
How to open pdf in Acobat Reader from JavaScript
New Here
,
/t5/acrobat-reader-discussions/how-to-open-pdf-in-acobat-reader-from-javascript/td-p/11728381
Jan 05, 2021
Jan 05, 2021
Copy link to clipboard
Copied
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!
TOPICS
How to
,
PDF and browsers
,
View PDF
,
Windows
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Have something to add?
Join the conversation

