air
air

Reputation: 6264

jquery load pdf file with .load()

can we load PDF file with jquery .load

Thanks

Upvotes: 0

Views: 2087

Answers (3)

Ben
Ben

Reputation: 7597

You can load it, yes, it's just an http request like any other. But you can't be sure of how it will look / how it will load, because browsers (and their users) configure PDF reading on the web in different ways!

Upvotes: 1

Josh Stodola
Josh Stodola

Reputation: 82483

What's the point? When I want to show a PDF, I simply redirect to it and it launches in Reader. I think this is the behavior any user would expect.

Upvotes: 1

easement
easement

Reputation: 6139

I don't think that you can load it into the page, but you could probably load it in to an iframe. You would use src attribute of the iframe rather than load().

Upvotes: 0

Related Questions