vinodnimbalkar / svelte-pdf

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

Callback for loading progress? #88

Open rberger opened 5 months ago

rberger commented 5 months ago

Is there a way to pass in a callback for loading progress? I see that the underlying pdf.js has a mechanism for this but don't see a way to utilize it in svelte-pdf.

I have some very large PDFs to view and the component just sits there with no indication that the load is in progress.

I believe it just needs to be passed in to the onProgress to the loadingTask object ether during its creation or after loadingTask is created.

My svelte/javascript fu is not up to figuring out how to build and test svelte-pdf locally so I was not able to test and create a PR.

thangnd-uit07 commented 4 months ago

I also need that feature. And wait for new updates...