GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PSPDFKit/pspdfkit-web-examples-catalog: Nutrient Web SDK (formerly PSPDFKit for Web) examples catalog

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
_server
_server
 
 
examples
examples
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
.lintignore
.lintignore
 
 
.oxfmtrc.json
.oxfmtrc.json
 
 
.oxlintrc.json
.oxlintrc.json
 
 
CLAUDE.md
CLAUDE.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
container-entrypoint.sh
container-entrypoint.sh
 
 
docker-compose.yml
docker-compose.yml
 
 
eslint.config.mjs
eslint.config.mjs
 
 
examples.config.js
examples.config.js
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
sandbox.config.json
sandbox.config.json
 
 

Repository files navigation

Nutrient Web SDK Examples Catalog

This repository is a barebones sample implementation of Nutrient Web SDK, built purely with demo purposes in mind. This example has not been designed to run unmodified in production.

Prerequisites

We recommend you use Docker to get all components up and running quickly.

  • Docker

You can easily run the catalog in trial mode without need for a license or activation key. Just make sure to check out this repository locally. The provided docker-compose.yml and Dockerfile will allow you to edit the example app on your host, and it will live-reload:

git clone https://github.com/PSPDFKit/pspdfkit-web-examples-catalog.git
cd pspdfkit-web-examples-catalog
docker-compose up

The examples catalog is now running on http://localhost:3000. You can access the Nutrient Document Engine dashboard at http://localhost:5000/dashboard using dashboard // secret.

Using a license

If you have a Nutrient Web SDK license you can use it as well by going through the following steps:

  1. Open the docker-compose.yml file in an editor of your choice and replace the YOUR_LICENSE_KEY_GOES_HERE placeholder with your standalone license key.

  2. Start environment with your Nutrient Document Engine activation key:

ACTIVATION_KEY=YOUR_ACTIVATION_KEY_GOES_HERE docker-compose up

If you are using Windows make sure to set the environment variables accordingly. For this replace the line starting with ACTIVATION_KEY="... with:

SET "ACTIVATION_KEY=YOUR_ACTIVATION_KEY_GOES_HERE"
docker-compose up

Make sure to replace YOUR_ACTIVATION_KEY_GOES_HERE with your Document Engine activation key. You only have to provide the activation key once, after that the server will remain activated until you reset it.

Resetting the environment

You can reset the environment by first tearing down its containers and volumes and then recreating them.

docker-compose down --volumes
docker-compose up

If using an activation key, you'd need to set it again so as to recreate the containers:

docker-compose down --volumes
ACTIVATION_KEY=YOUR_ACTIVATION_KEY_GOES_HERE docker-compose up

If you are using Windows make sure to set the environment variables accordingly. For this replace the line starting with ACTIVATION_KEY="... with:

SET "ACTIVATION_KEY=YOUR_ACTIVATION_KEY_GOES_HERE"
docker-compose up

Notes

If an example sets options within NutrientViewer.Options, the page should be refreshed when switching to/from the example, since NutrientViewer.load() freezes the options object. Currently only the Form Creator example does this, but if any others qualify, the refreshExamples constant should be updated at _app.js:10.

Troubleshooting

Occasionally running the docker-compose scripts will result in errors because some containers are in a broken state. To resolve this, you can reset all containers and their attached volumes by running the following command:

docker-compose down --volumes

If you have further troubles, you can always reach out to us via our support platform.

Upload a new pdf file to the catalog examples

To upload a pdf to our catalog we need to update the examples in the Web Repo. Each example uses an example.pdf included in the same folder. In order to change it, you only need to name the new PDF example.pdf and replace (or rename) the old one.

Forcing a specific backend

Regardless of the current backend chosen, you can force a specific backend to be selected when accessing the catalog by following a URL by appending the mode query param and setting it to either "standalone" or "server", for example: https://web-examples.our.services.nutrient-powered.io/hello?mode=standalone will open the Standalone version of the hello example, even if the default backend is Document Engine.

Support, Issues and License Questions

Nutrient offers support for customers with an active SDK license via https://support.nutrient.io/hc/requests/new

Are you evaluating our SDK? That's great, we're happy to help out! To make sure this is fast, please use a work email and have someone from your company fill out our sales form: https://www.nutrient.io/contact-sales?=sdk

License

This software is licensed under a modified BSD license.

Contributing

Please ensure you signed our CLA so we can accept your contributions.

About

Nutrient Web SDK (formerly PSPDFKit for Web) examples catalog

www.nutrient.io/sdk/web/

Topics

angularhtml-to-pdfhtml2pdfjavascriptnutrientpdfpdf-generationpdf-viewerpdf-viewer-reactpdfviewerpspdfkitreacttypescript-library

Resources

Readme
License
Activity
Custom properties

Stars

133 stars

Watchers

12 watching

Forks

61 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.