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.
Launch Demo View Source Code

#### Text position

Shows how to extract text positions from a document. The sample highlights the positions with different colors.
Launch Demo View Source Code

#### Redaction

Shows how to redact and permanently remove text, images or graphics from a document.
Launch Demo View Source Code

#### Diff Documents

Shows how to render three synchronized panels where the middle panel shows pixel differences between the two documents.
Launch Demo View Source Code

#### Measurement Annotations

Shows how to create annotations that measure distance, perimeter and area.
Launch Demo View Source Code

#### Flipbook

Demonstrates how to extract canvas of each page. The sample uses turn.js to render them.
Launch Demo View Source Code

#### Offline

Demonstrates how to use ServiceWorker to use WebViewer offline.
View Source Code