For the complete documentation index, see llms.txt. This page is also available as Markdown.
Node.jsEditingOffice

Compare Files Showcase Demo Sample Code

Requirements

These packages are required to use these features in production. Trial keys have unlimited access to all features

Web SDKPackage: CompareFull APILive demo

Easily compare two files by converting them to images and laying them on top of each other for a pixel-by-pixel comparison.

This demo allows you to:

  • Choose your own PDF files to compare

  • Display the differences

  • Customize compliance checks

  • Download a PDF with differences highlighted

The full API is enabled by passing the fullAPI option into the WebViewer constructor. This is already included in your sample code below.

Implementation steps

To add PDF comparison capability with WebViewer: Step 1: Get started with your preferred web stack for WebViewer Step 2: Add the ES6 JavaScript sample code provided in this guide

Once you generate your license key, it will automatically be included in your sample code below.

spinner