vinodnimbalkar / svelte-pdf

svelte-pdf provides a component for rendering PDF documents using PDF.js
https://www.npmjs.com/package/svelte-pdf
MIT License
203 stars 49 forks source link

Can it dynamically reload a PDF? #42

Open stratosgear opened 1 year ago

stratosgear commented 1 year ago

I have a question that I cannot answer by reading the current docs (and even the codebase):

Will I be able to dynamically set the PDF url and trigger a reload to reload it?

In my use case the PDF URL contains some path parameters, that the backend generates a special pdf based on them.

So, from the frontend I would like to push some switches/levers and then trigger a pdf reload to see the newly generated pdf!

Is something like that possible...?

Thanks!

gponty commented 1 year ago

up :)