svelte-pdf
svelte-pdf copied to clipboard
svelte-pdf provides a component for rendering PDF documents using PDF.js
``` // export let name; import {onMount} from 'svelte' import PdfViewer from 'svelte-pdf'; onMount(()=>{ }); ``` Just trying to test it out a very basic example but keep getting this...
I am getting an empty result on Safari when the package is used within a Sapper app (it works fine on other browsers) This is the code I've used, taken...
For use-cases where the data is already available, it would be convenient to have a `data` prop or similar rather than `url`, which necessitates constructing something like `data:mimetype;charset=utf-8,` to pass...
To me, an extremely useful feature would be, if I could find out on which the pdf currently is. I see two options for that: 1. the component forwards an...
The buttons when the screen is narrow do not lose or gain drop shadows the way they do in full width view. thanks.
My code ``` import { onMount } from 'svelte'; let PdfViewer; onMount(async () => { const module = await import('svelte-pdf'); PdfViewer = module.default; }); ``` it shows this error
Hi, Your work here is really good. PDF file looks simple and elegant on the browser. Is there any possibility of having a vertical scrolling option, instead of the buttons...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 3.2.7 to 3.2.8. Changelog Sourced from vite's changelog. 3.2.8 (2024-01-19) fix: fs deny for case insensitive (a26c87d) Commits 7e3a866 release: v3.2.8 a26c87d fix: fs deny for case...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 3.2.7 to 3.2.8. Changelog Sourced from vite's changelog. 3.2.8 (2024-01-19) fix: fs deny for case insensitive (a26c87d) Commits 7e3a866 release: v3.2.8 a26c87d fix: fs deny for case...
I have an issue when rendering the component on my app asynchronously: `Setting up fake worker failed: "Cannot load script at: http://localhost:3000/client/app/vendors-node_modules_svelte-pdf_index_js.7eb84ba08763e11d3530.worker.js".` ![image](https://user-images.githubusercontent.com/72035651/206435474-ea27b6e4-183f-41b4-a6ba-ac1670520d34.png) ![image](https://user-images.githubusercontent.com/72035651/206435586-0c95ba6f-5497-4b1d-ad10-65f297146576.png) Any idea what the problem is?...