@pdftron/webviewer-downloader

1.4.2 • Public • Published

webviewer-downloader

NPM package to download the latest version of WebViewer.

This script downloads the zipfile from https://www.pdftron.com/downloads/WebViewer.zip and extracts it + cleans up unused files.

Testing

Run node index.js to install deps in the cwd.

Using

npx @pdftron/webviewer-downloader {params}

Params

--path - The folder you want to install WebViewer, relative to your CWD. Defaults to ./public/lib.

--v - The version you want to download. If none is specified, it will download the latest version.

--core-only - Upon extraction, it will only leave out core folder (deletes UI).

--pdfjs - Downloads the PDFJs wrapper instead of WebViewer

Example

npx @pdftron/webviewer-downloader

Readme

Keywords

none

Package Sidebar

Install

npm i @pdftron/webviewer-downloader

Weekly Downloads

3,315

Version

1.4.2

License

ISC

Unpacked Size

6.15 kB

Total Files

4

Last publish

Collaborators

  • pdftron-dev