How do I use a ProcessPDF handler to programmatically determine when a pdf is complete?
1. Before printing to pdf995: GetPrivateProfileString(TEXT(“Parameters”),TEXT(“ProcessPDF”), “”, szprocesspdf, sizeof(szprocesspdf), GetPdf995Path() + “pdf995\\res\\pdf995.ini”); szDefaultProcessPDF = szprocesspdf; WritePrivateProfileString(TEXT(“Parameters”),TEXT(“ProcessPDF”), applicationthatdeletesflagfilethatyousupply, GetPdf995Path() + “pdf995\\res\\pdf995.ini”); HANDLE hndFlag = CreateFile(GetPdf995Path() + “pdf995\\flag”, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); CloseHandle(hndFlag); 2. Print to pdf995. When pdf995 created the pdf, it will call applicationthatdeletesflagfilethatyousupply. That will delete the flag file. Wait as follows until the pdf is complete: CFileStatus status; CString szRoot = GetPdf995Path(); while(CFile::GetStatus( szRoot + “pdf995\\flag”, status )) { Sleep(100); } Sleep(100); WritePrivateProfileString(TEXT(“Parameters”),TEXT(“ProcessPDF”), szDefaultProcessPDF, GetPdf995Path() + “pdf995\\res\\pdf995.ini”); 3.