ExecuteVCRDataMergeEx
整合與相容性
需要 Small Business 版本。在 Delphi、C++Builder 與 Lazarus 程式碼中,請以 TPDFlibSmallBusiness(PDFlibSmallBusiness 單元)或 TPDFlibEnterprise 建立程式庫;Small Business 與 Enterprise DLL 及 ActiveX 組建原樣提供。Single 版本保留此方法,方法會傳回 0,並將 LastErrorCode 設為 901(PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)
描述
外部檔案 PDF/VCR 合併的 DLL 與 ActiveX 形式
JSON 欄位名稱與值使用標準 JSON 字串跳脫(含 Unicode 跳脫);明確傳入空字串會清空其佔位符,未提供的欄位則保持其佔位符不變;合併失敗時保留既有的輸出檔案
語法
ActiveX
Function PDFlib::ExecuteVCRDataMergeEx(InputFileName As String, Password As String, FieldValues As String, OutputFileName As String) As Long
型別程式庫 3.3 版起可在 IPDFlibrary2 上使用
DLL
int DLExecuteVCRDataMergeEx(int InstanceID, const wchar_t* InputFileName, const wchar_t* Password, const wchar_t* FieldValues, const wchar_t* OutputFileName);
int DLExecuteVCRDataMergeExA(int InstanceID, const char* InputFileName, const char* Password, const char* FieldValues, const char* OutputFileName);
備註
以相同引數與傳回值轉送 Delphi 的 ExecuteVCRDataMerge 外部檔案多載