Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-pdfjs

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-pdfjs - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

index.d.ts

9

package.json
{
"name": "svelte-pdfjs",
"version": "0.0.2",
"version": "0.0.3",
"devDependencies": {
"@sveltejs/adapter-netlify": "^1.0.0-next.35",
"@sveltejs/adapter-node": "^1.0.0-next.55",
"@sveltejs/kit": "next",

@@ -27,6 +28,8 @@ "@typescript-eslint/eslint-plugin": "^4.31.1",

"./package.json": "./package.json",
"./index.svelte": "./index.svelte",
".": "./index.svelte"
".": "./index.svelte",
"./PDFViewer/CanvasImpl/PDFViewerCanvas.svelte": "./PDFViewer/CanvasImpl/PDFViewerCanvas.svelte",
"./PDFViewer/CanvasImpl/SinglePageCanvas.svelte": "./PDFViewer/CanvasImpl/SinglePageCanvas.svelte",
"./PDFViewer/PDFViewer.svelte": "./PDFViewer/PDFViewer.svelte"
},
"svelte": "./index.svelte"
}
## svelte-pdfjs
A crude implementation of a svelte pdf viewer component, reacts to changes in the URL, password, page number and zoom level. All styling is left upto the user.
## SSR
Partially SSR compatible. The internal library Pdf.js throws a warning when attempting SSR, can be fixed through vite-plugin-iso if being used in svelte kit.
A WIP implementation of a basic svelte pdf viewer component, reacts to changes in the URL, password, page number and zoom level. All styling is left upto the user.
---
## SvelteKit
It's compatible with SvelteKit, just import the component and use it. No onMount shenanigans required in the consumer since it's already done within the PDFViewer component.
## License
[MIT](LICENSE)
[MIT](LICENSE)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc