EmbedFox documentation
Embed guide
Embed a public reader in the page where visitors need the document, using the versioned snippet generated after upload.
Read the embed guideHow the website embed works.
Upload a PDF, then copy the generated snippet. The stable v1 loader creates a lazy iframe, so the reader stays isolated from the styles and scripts of the page around it.
Snippet attributes.
The snippet is one container element plus one script. data-embedfox names the document by its slug and is the only required attribute. data-embedfox-title sets the iframe title for assistive technology. data-embedfox-lang pins the language of the reader controls to a reviewed reader language. data-embedfox-page opens the embed on a chosen page, so a catalog page can start at its spread instead of the cover. data-embedfox-grant carries a signed embed session where a workspace restricts embedding to allowed domains.
What the snippet changes on your page.
The reader reports its height only to its matching embed and loads lazily when it approaches the viewport. The host page keeps its own styles, layout and loading speed; the document reader simply takes the space it needs.
Several documents on one page.
One page can hold several embeds. Each container mounts its own isolated reader, and every reader resizes independently through the same versioned protocol, so long-lived pages keep working as the product evolves.
Questions this page answers.
Short answers to what publishers ask about this part of EmbedFox.
- Will the embed slow my page down?
- The loader creates the iframe only as it approaches the viewport, so a reader further down a long page costs nothing until someone scrolls to it.
- Can I put several documents on one page?
- Yes. Each container mounts its own isolated reader and resizes independently through the same versioned protocol.
- Does the embed set cookies?
- No. EmbedFox sets no cookies for metrics, so the reader does not put a consent banner on your page.
- Will the snippet keep working?
- The v1 loader is versioned. A page you build today keeps working as the reader changes behind it.
Keep reading.
Where publishers usually go next from here.