Compare files with overlay
Apryse SDK allows you to compare files visually using overlays.
Overlay PDFs to find differences in Xamarin.Android
You can visually compare pages. This resolution independent comparison allows you to quickly spot differences between pages.
There are two main ways to integrate the out-of-box UI components in your application:
Standalone activity
The DiffActivity is a standalone component that handles from picking two files to generating the comparison result.

Define the activity
** Storage Permission **
Please follow the latest Android best practices and guidelines outlined here
Show the activity
Comparison options dialog
If you have your own viewer already and only want to show the comparison options in your application, the DiffOptionsDialogFragment can be used.

where compareFile is:
AsyncTask pattern can be used instead of Disposable pattern if desired.
Overlay PDFs to find differences in Xamarin.iOS
The Apryse SDK provides powerful file comparison functionality. An example of this capability is shown below by comparing two PDF pages and highlighting the difference between them in red.



Show a file comparison view controller
The PTDiffViewController class shows a control to select two documents and create a new file showing the visual difference between them with customizable colors.

The file comparison control is part of the Tools library, so make sure you have added the Tools library to your project.
The diff view controller must be pushed onto a navigation controller's stack before being shown.
File comparison sample code
The following sample code demonstrates how to use PDFNet to generate a document displaying the visual difference between two PDF pages:
Last updated
Was this helpful?