Skip to content
Sample to demonstrate integrating WebViewer into Svelte
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
src
.gitignore
LICENSE
README.md
package-lock.json
package.json
rollup.config.js

README.md

WebViewer Svelte Example

WebViewer is a powerful JavaScript-based PDF Library that's part of the PDFTron PDF SDK. It provides a slick out-of-the-box responsive UI that interacts with the core library to view, annotate and manipulate PDFs that can be embedded into any web project.

WebViewer UI

This repo is specifically designed for any users interested in integrating WebViewer into Svelte project. This project was generated using the Svelte degit template.

Initial setup

Before you begin, make sure your development environment includes Node.js.

Install

git clone https://github.com/PDFTron/webviewer-svelte-sample.git
cd webviewer-svelte-sample
npm install

Run

npm run dev

Build

Run npm run build to build the project. The build artifacts will be stored in the public/ directory.

WebViewer APIs

See API documentation.

License

See license.

You can’t perform that action at this time.