Samples are not runnable from the file system. Please run using "npm start" or use a local web server.
Advanced samples
Preloading
Shows how to preload WebViewer and documents to improve user experience.
Text position
Shows how to extract text positions from a document. The sample highlights the positions with different colors.
Redaction
Shows how to redact and permanently remove text, images or graphics from a document.
Diff Documents
Shows how to render three synchronized panels where the middle panel shows pixel differences between the two documents.
Measurement Annotations
Shows how to create annotations that measure distance, perimeter and area.
Flipbook
Demonstrates how to extract canvas of each page. The sample uses
turn.js to render them.
Offline
Demonstrates how to use ServiceWorker to use WebViewer offline.