In WebViewer version 8.9+ you can view two documents loaded side-by-side in the UI to use to compare documents.
Starting with WebViewer 11.12, you also have full editing capabilities while in MultiViewer (side-by-side) mode, transforming it from a comparison-focused tool into a fully interactive, side-by-side workspace. MultiViewer now includes the complete set of WebViewer PDF editing tools across all supported file types.
With editing, you can:
These enhancements streamline key multi-document workflows by enabling you to review, compare, and edit content without switching contexts. Editing no longer interrupts comparisons, and you gain efficiency by remaining in a single workspace.
In MultiViewer mode, the WebViewer header and toolbar are shared between both document viewers. This lets you select a tool once and use it seamlessly across both viewers at the same time.

If you Apryse WebViewer version 10.4 or earlier, you'll use enable/disableFeatures to enter or exit MultiViewer. To toggle this feature on/off in the WebViewer interface, use the following code:
This will add the option Compare Pages in the View controls dropdown menu. By clicking the Compare Pages, you can enter MultiViewer mode.

If you use Apryse WebViewer version 10.5+, you must use enterMultiViewerMode and exitMultiViewerMode APIs to enter/exit MultiViewer instead of enable/disableFeatures, like the following:
This will add the option Compare Pages in the View controls dropdown menu. By clicking the Compare Pages, you can enter MultiViewer mode.
The following section refers to the legacy compare mode used prior to WebViewer 11+. The comparison feature is now available in the UI without needing to use the 'Start Comparison' button as long as the MultiViewer feature is enabled.
By default, if fullAPI is enabled in the WebViewer constructor and instance.UI.Feature.ComparePages is enabled, MultiViewerMode will come with the 'Start Comparison' button, which when clicked, will highlight all the text differences on the document using annotations.
If you would like to enable/disable the Show Comparison Button, you can do it with the API below:
It will also enable a panel that will list the differences allowing you to search through them. You can also click the items in the panel to be scrolled to the highlighted change on both sides.

You can also compare the difference between two documents with documentViewer.startSemanticDiff and stop the comparison with documentViewer.stopSemanticDiff.
To disable the comparison functionality, you can pass disableMultiViewerComparison to the WebViewer constructor.
The disableMultiViewerComparison constructor option was meant to disable the 'Start Comparison' button in WebViewer's legacy UI. Starting in WebViewer 11+, this button no longer exists.

In MultiViewer mode you can access the APIs on the second DocumentViewer through the getDocumentViewers() API.
To ensure the second DocumentViewer has been initialized before you call it, you can wrap your code in the MULTI_VIEWER_READY event:
Starting in WebViewer 11.12, when entering MultiViewer mode all document viewers should be available right away to interact with. The MULTI_VIEWER_READY event is no longer necessary.
There are also some additional APIs to control the scroll and zoom syncing.
By default, the save document button is disabled. You can enable this button to allow users to download the document from either side.
Starting in WebViewer 11.12, you can set the active document viewer key programmatically using the setActiveDocumentViewerKey API. You can also retrieve the active document viewer key using the getActiveDocumentViewerKey API.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales