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.
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 theloadingTask
object ether during its creation or afterloadingTask
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.