1

I'm trying to do the same thing as asked in this question here, the only signification difference being the use of Mozilla Firefox instead of Google Chrome / Chromium .

I've tried using the Mozilla JetPack SDK and so far, for all content loaded with Mozilla's pdf.js viewer seems to be read as text/html . Is there a correct way to do this using Jetpack (or even XUL) in Firefox ?

Cœur
  • 37,241
  • 25
  • 195
  • 267
hytriutucx
  • 1,614
  • 6
  • 26
  • 37

1 Answers1

1

I think you can detect a pdf rendered with pdf.js by checking if the document.baseURI property is set to "resource://pdf.js/web/"

paa
  • 5,048
  • 1
  • 18
  • 22