0

I need to know if the pdf opened in the browser or in a separate reader.

I'm working on a website that will open a pdf file in a new window, but some people knowingly or unknowingly set their browser to open the pdf in an Adobe or third party reader. If the pdf did not open in the window I opened for it, I would like to close that window.

How do I know if the pdf did not open in the browser?

Brian
  • 307
  • 2
  • 15

1 Answers1

0

It is not possible to do that, for good reasons: privacy, security.

I don't know about the requirement of your project, if you really want to keep control, you need to stay in the HTML, CSS, JS land, not pdf.

Walle Cyril
  • 3,087
  • 4
  • 23
  • 55