Svelte and npm package #111
andrewrisse
started this conversation in
General
Replies: 1 comment
-
Snippet is not posted as an npm package. If you don't want to use CDN, you can clone the repo and copy the folder https://github.com/embedpdf/embed-pdf-viewer/tree/main/snippet/src. The index.html shows an example of using it locally: <script async type="module"> import EmbedPDF from './embedpdf.js'; const EPDFinstance = EmbedPDF.init({ type: 'container', target: document.getElementById('pdf-viewer'), src: 'https://snippet.embedpdf.com/ebook.pdf', worker: true }) </script> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I need to use the EmbedPDF snippet in a Svelte project without downloading it from a CDN (I won't always have internet access). Is there an npm package I can use to get the snippet and/or docs on how to set it up using one of the engine packages?
Beta Was this translation helpful? Give feedback.
All reactions