Some test text!

menu
Advancedkeyboard_arrow_down

Advanced JavaScript samples

Text compare

Shows how to compare text in different documents.

Edit on CodeSandbox Launch demoView source code

Video Annotations

Allows the functionality of annotating video frames.

Edit on CodeSandbox Launch demo

Preloading

Shows how to preload WebViewer and documents to improve user experience.

Edit on CodeSandbox Launch demoView source code

Text position

Shows how to extract text positions from a document. The sample highlights the positions with different colors.

Edit on CodeSandbox Launch demoView source code

Redaction

Shows how to redact and permanently remove text, images or graphics from a document.

Edit on CodeSandbox Launch demoView source code

Office to PDF

This sample illustrates how to convert office files to PDF.

Edit on CodeSandbox Launch demoView source code

Redact people faces from PDF

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

Launch demoView source code

Diff Documents

Shows how to render three synchronized panels where the middle panel shows pixel differences between the two documents.

Edit on CodeSandbox Launch demoView source code

Measurement Annotations

Shows how to create annotations that measure distance, perimeter and area.

Edit on CodeSandbox Launch demoView source code

Flipbook

Demonstrates how to extract canvas of each page. The sample uses turn.js to render them.

Edit on CodeSandbox Launch demoView source code

Offline

Demonstrates how to use ServiceWorker to use WebViewer offline.

Edit on CodeSandbox View source code on Github

Accessibility

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

Edit on CodeSandbox Launch demoView source code

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.