Integrating into existing svelte app + viewing options

Which product are you using?

Not sure!

Detailed description of issue

Expected behaviour
{Provide a screenshot or description of the expected behaviour}

Does your issue happen with every document, or just one?
{Answer here}

Link to document
I’ve been able to successfully clone the repo here GitHub - pdfjs-express/pdfjs-express-viewer-svelte-sample and tinker with some of the settings. However, I have an existing Svelte app that I’m trying to integrate into. I’ve gone through the docs with no success, and am not sure where each file needs to be.

As a follow-up, I’m trying to embed the viewer within an existing page (i.e. inline, not taking up full page, should only be as wide as the doc). How can I do that?

Any help would be much much appreciated. Thanks!

Code snippet
{Provide a relevant code snippet}

Hi bennettccohen,

The public directory is where you’ll serve the PDFJS Express /public files (located in the node_modules/@pdftron/pdfjs-express-viewer/public)
You can run npm run postinstall which will move the files for you.

Best regards,