Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Shows differences on two PDF pages by adding highlight annotations.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 5.3 Yes Yes Yes Yes Yes
MBS( "DynaPDF.ShowDifferences"; PDF; pageIndex1; OtherPDF; pageIndex2 { ; CheckMoving; HighlightColor; Scale; ColorTolerance; Debug } )   More


Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
pageIndex1 The page index in first PDF context. 1
OtherPDF The other PDF reference. Can be same as PDF parameter, but allows you to use PDF imported in other PDF context. $pdf2
pageIndex2 The page index in second PDF context. 1
CheckMoving Optional
Whether to check for moving parts, e.g. the big part of the page shifted up one line. Default is zero.
HighlightColor Optional
Default is 65535 for yellow (Full red and green).
Scale Optional
Scale of the raster.
Default is to compare at 72dpi.
If you pass 2 here, we use 144dpi.
ColorTolerance Optional
The tolerance for color comparison.
Colors where red, green or blue components are within given tolerance are considered equal. So FFFFFF and FFFFFD are equal.
Default is 3.
Debug Optional
Whether to write debug images to temp folder.
If 1, we write png files to temp folder. One image is before the check, one with all similar lines removed and one with result of comparison. Red pixels show you the raster, green equal pixels.


Returns number of annotations or error.


Shows differences on two PDF pages by adding highlight annotations.
Returns OK on success which means that highlight annotations have been added to both pages.
You can than render a page to show differences to user.
Requires a DynaPDF Pro license. Without a license, the DynaPDF watermark will reduce the accuracy.

See also

Example Databases

Blog Entries

Release notes

Created 22nd September 2015, last changed 23th July 2016

DynaPDF.SetXFAStream   -   DynaPDF.SkewCoords

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins