CompareFileVisualsA
文件比較、DLL
需要 Small Business 版本。在 Delphi、C++Builder 與 Lazarus 程式碼中,請以 TPDFlibSmallBusiness(PDFlibSmallBusiness 單元)或 TPDFlibEnterprise 建立程式庫;Small Business 與 Enterprise DLL 及 ActiveX 組建原樣提供。Single 版本保留此方法,方法會傳回 0、空字串或 False,並將 LastErrorCode 設為 901(PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)
描述
透過 DLL 窄字串慣例,以視覺方式比較目前文件與 PDF 檔案,傳回與 CompareFileVisuals 相同的 JSON 報告
語法
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);傳回值
傳回實例持有的 JSON 報告指標;實例無效、描繪失敗或選項被拒時傳回 null 指標
備註
結果為 UTF-8 JSON,輸入字串依實例的 ANSI 設定解碼;在同一實例上進行下一次字串回傳呼叫之前,請先複製指標
另請參閱
CompareFileVisuals, CompareDocumentVisualsWith, CompareRenderedPagesWith