README.md

PDF.js + Hypothes.is on your site

customized the viewer.js code to generate a rel="canonical"--as the
viewer URL will differ from your PDF's URL, but they should both show the
same annotations.

The project is entirely static HTML, JS, and CSS. Enjoy!

When to use this code

There are times when the Hypothes.is browser extension (or the Hypothes.is Via proxy
can't "reach" the PDF in a page because it's served in an <iframe> or <embed> tag. This code can be
hosted alongside your PDF's to provide the necessary viewer environment and directly embed Hypothes.is,
so that it can be used within the <iframe> to annotate the PDF.