Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.ShowDifferences
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 |
MBS( "DynaPDF.ShowDifferences"; PDF; pageIndex1; OtherPDF; pageIndex2 { ; CheckMoving; HighlightColor; Scale; ColorTolerance; Debug } ) More
Parameters
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 |
Result
Returns number of annotations or error.
Description
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.
If you have an open page, we close it automatically for you before doing the import.
Examples
Show differences:
Set Variable [ $r; Value:MBS("DynaPDF.ShowDifferences"; $pdf1; 1; $pdf2; 1; 1) ]
See also
Release notes
- Version 7.3
- Fixed bug with DynaPDF.ShowDifferences and rotated pages.
Example Databases
Blog Entries
- DynaPDF Screenshot
- MBS FileMaker Plugin, version 7.3pr2
- MBS FileMaker Plugin 6.3 for OS X/Windows
- MBS FileMaker Plugin 6.2 for OS X/Windows
- MBS FileMaker Plugin, version 6.2pr4
- MBS FileMaker Plugin, version 5.4pr5
- MBS FileMaker Plugin, version 5.3pr4
This function checks for a license.
Created 22nd September 2015, last changed 25th September 2024