Some test text!

Discord Logo

Chat with us

PDFTron is now Apryse, learn more here.

Web / Samples / Advanced

Platform


PDFTron is now Apryse, learn more here.

Advanced JavaScript samples

Content Editing (text and images)

Edit the content of a PDF document directly.

Launch demoView source code

Office template filling

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

Edit on CodeSandbox Launch demoView source code

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