View and Edit Documents Side-by-Side in WebViewer PDF Editor
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:
Edit multiple documents directly within a single view.
Set permissions independently across each viewer.
Apply changes to PDFs, images, Microsoft Office documents, and more.
Work with each document independently or simultaneously, consistent with standard WebViewer interactions.
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.

Enter/Exit MultiViewer mode programmatically
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.
Compare the differences between two documents
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.
API
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:
There are also some additional APIs to control the scroll and zoom syncing.
Save Document Button
By default, the save document button is disabled. You can enable this button to allow users to download the document from either side.
Active Document Viewer Key
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.
Last updated
Was this helpful?
