Advanced JavaScript samples

Content Editing (text and images)

Edit the content of a PDF document directly.

Office template filling

Bind templates to content in .docx and .xlsx files.

Video annotations

Allows the functionality of annotating video frames.

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.

Office to PDF

This sample illustrates how to convert office files to PDF.

Redact people faces from PDF

Shows how to automatically detect and redact people faces from documents.

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.

Accessibility

Demonstrates how to use accessibility feature of WebViewer to read PDF text out loud.

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales