Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Shows differences on two PDF pages by adding highlight annotations.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 5.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
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 | Whether to check for moving parts, e.g. the big part of the page shifted up one line. Default is zero. | 1 | Optional |
HighlightColor | Default is 65535 for yellow (Full red and green). | Optional | |
Scale | Scale of the raster. Default is to compare at 72dpi. If you pass 2 here, we use 144dpi. |
1 | Optional |
ColorTolerance | 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. |
3 | Optional |
Debug | 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. |
0 | Optional |
Returns number of annotations or error.
Show differences:
Set Variable [ $r; Value:MBS("DynaPDF.ShowDifferences"; $pdf1; 1; $pdf2; 1; 1) ]
This function checks for a license.
Created 22nd September 2015, last changed 3th January 2021