Some test text!

Loading...
Guides
Advanced

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

Upcoming Webinar: How Developers Add Office Viewing Without Downloading | June 9th at 11 am PT

PDFTron SDK

The Platform

NEW

© 2022 PDFTron Systems Inc. All rights reserved.

Privacy

Terms of Use