CompareFileVisualsA
Document comparison, DLL
Requires the Small Business edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibSmallBusiness (unit PDFlibSmallBusiness) or TPDFlibEnterprise; the Small Business and Enterprise DLL and ActiveX builds provide it unchanged; the Single edition keeps the method, which returns 0, an empty string or False and sets LastErrorCode to 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)
Description
Compares the current document with a PDF file visually through the DLL narrow-string convention, returning the same JSON report as CompareFileVisuals
Syntax
Delphi
Function DLCompareFileVisualsA(InstanceID: Integer; OtherFileName, Password: PAnsiChar; DPI: Double; ColorTolerance: Integer): PAnsiChar; Stdcall;DLL
const char* DLCompareFileVisualsA(int InstanceID, const char* OtherFileName, const char* Password, double DPI, int ColorTolerance);Return values
Returns the instance-owned JSON report pointer, or a null pointer for an invalid instance, failed rendering, or rejected options
Remarks
The result contains UTF-8 JSON and input strings are decoded according to the instance ANSI setting; copy the pointer before the next string-returning call on the same instance
See also
CompareFileVisuals, CompareDocumentVisualsWith, CompareRenderedPagesWith