WebViewer is a powerful JavaScript-based PDF Library that is part of the Apryse SDK. It provides a slick out-of-the-box responsive UI that enables you to view, annotate and manipulate PDFs and other document types inside any web project.
This sample demonstrates a PoC for generating barcodes, stamping them onto a PDF and then reading them after they have been flattened onto the document. Watch the demo here or read the blog here.
A license key is required to run WebViewer. You can obtain a trial key in our get started guides, or by signing-up on our developer portal.
npm install
npm start
Note: If you get ERR_OSSL_EVP_UNSUPPORTED when trying the run the sample, try setting the environment variable NODE_OPTIONS to --openssl-legacy-provider before the start command. In Windows, this is done by changing the following line in package.json:
"start": "react-scripts start"
to become:
"start": "set NODE_OPTIONS=--openssl-legacy-provider && react-scripts start"
This app features jsbarcode for generation and javascript-barcode-reader for reading of the 2D barcodes and jsqr for generation and qrcode for reading of the QR codes.