Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

DynaPDF.ShowDifferences

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 } )

Parameters

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.
1
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.
1
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.
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.
0

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.

See also

Example Databases


DynaPDF.SetWordSpacing   -   DynaPDF.SkewCoords

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos