Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I use a ProcessPDF handler to programmatically determine when a pdf is complete?

0
Posted

How do I use a ProcessPDF handler to programmatically determine when a pdf is complete?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123