Oleh Kurpiak
Oleh Kurpiak

Reputation: 1369

open pdf via pdf.js

http://mozilla.github.io/pdf.js/examples/learning/helloworld.html here is a guide how to open pdf files in related folder. I want to open file from absolute path. like

var src = "C:\path\path\file.pdf";

how can I do it? I already try with absolute path but there was an error while downloading file via ajax request

Upvotes: 0

Views: 1260

Answers (2)

alQemist
alQemist

Reputation: 360

Actually you can load local pdf and view it in the browser without uploading. I did not believe it was possible due to browser security but in fact it does work....

http://www.pdfcharts.com/lab/analyze.html

Upvotes: 0

Aleksei Rytikov
Aleksei Rytikov

Reputation: 558

You can download pdf via AJAX on server and after that open it from the server.

Upvotes: 0

Related Questions