I'm trying to get the PDF Viewer to work in svelte. Any idea on how to do it?

I'm building a PDF management app and obviously the viewer is the major component. I'm using svelte as the front end library. How can I add the PDF Viewer to my app? 


Specific Questions:

  1. How to load file from js FIle? 

1 Reply

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team September 7, 2022 10:27 AM UTC

HI Jenul,


Sorry for the delay and thanks for your patience.


Please find the sample like below to integrate the PDF Viewer component in svelte.


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/pdfviewer-svelte-sample1467572482.zip


Also, you can refer from above sample src --> App.svelte to load JS file.


Steps to run the sample:


$>>> npm install

$>>> npm run dev


Please get back to us if you need any further assistance.


Loader.
Up arrow icon