{"repo":"vinodnimbalkar/svelte-pdf","free":true,"listed":false,"github":"https://github.com/vinodnimbalkar/svelte-pdf","clone":"git clone https://github.com/vinodnimbalkar/svelte-pdf.git","description":"svelte-pdf provides a component for rendering PDF documents using PDF.js","language":"Svelte","stars":257,"topics":["pdf","pdf-viewer","pdf-viewer-component","svelte","javascript","pdfjs-dist","pdfjs"],"license":"MIT","category":"media-processing","readme_excerpt":"svelte-pdf Simple svelte PDF Viewer component with controls like - Page navigation - Zoom - Rotation - Print - AutoFlip Page - External link handling Demo Source code of demo page is included in example directory. https://svelte-pdf.vinversion.com How to install How to use Using local path Using url Using base64 encoded string Monitoring loading progress For large PDFs, you can monitor the loading progress using the onProgress callback: Controlling external links behavior You can control how external links within the PDF open using the externalLinksTarget prop: Props prop name type default -------------------- --------- ------------------------------------------------------------------------------------------- url string N/A data string N/A scale float 1 pageNum number 1 flipTime number 120 showButtons array [\"navigation\", \"zoom\", \"print\", \"rotate\", \"download\", \"autoflip\", \"timeInfo\", \"pageInfo\"] showBorder boolean true downloadFileName string N/A onProgress function undefined externalLinksTarget string \" blank\" Let me know if you need any further adjustments! Examples To view the examples, clone the svelte-pdf repo and install the dependencies: Then run the http://localhost:5000 : How to use it in Sapper with SSR enabled 1. Install it as part of devDependencies When using Svelte components installed from npm, it needs the original component source (rather than any precompiled JavaScript that ships with the component). This allows the component to be rendered server-side, and","default_branch":null,"files":null,"tree":[],"storefront":"/r/vinodnimbalkar","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vinodnimbalkar/svelte-pdf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}