DECLARE INTEGER _apCreate@0 IN ps2pdf.dll AS apCreate DECLARE _apClose@4 IN ps2pdf.dll AS apClose INTEGER id DECLARE INTEGER _apConvert@4 IN ps2pdf.dll AS apConvert INTEGER id DECLARE INTEGER _apSetFunc@24 IN ps2pdf.dll AS apSetFunc INTEGER id, INTEGER code, INTEGER nOptVal1, INTEGER nOptVal2, STRING pOptVal1, STRING pOptVal2 DECLARE INTEGER _apGetFunc@24 IN ps2pdf.dll AS apGetFunc INTEGER id, INTEGER code, INTEGER nOptVal1, INTEGER nOptVal2, STRING pOptVal1, STRING pOptVal2 #define AP_Set_Output 3000 #define AP_Set_Input 3001 SELECT Convert GO top SCAN ** Convert ps files to a general pdf file. iFilename=ALLTRIM(oldpath) && The Path of File that is to be converted i.e Input file oFilename=ALLTRIM(Newpath) && The Path of File that is to be converted into new PDF format i.e output file id = apCreate() IF (id # 0) apSetFunc(id, AP_Set_Input , 0, 0, '&iFilename' , 0) &&input file. apSetFunc(id, AP_Set_Output, 0, 0, '&oFilename', 0) &&output format and file. iRet = apConvert(id) apClose(id) ENDIF ENDSCANThe process is taking ample time and my objective is to reduce it to minimum (by multi threading or otherwise)