WaitForRenderJob

Inspeção de documentos, Renderização

Descrição

Bloqueia a thread chamadora até que um render job termine ou o timeout expire e, em seguida, retorna o estado terminal do job

Sintaxe

Delphi

Function TPDFlib.WaitForRenderJob(JobHandle: Integer; TimeoutMS: Integer): Integer;

DLL

int DLWaitForRenderJob(int InstanceID, int JobHandle, int TimeoutMS);

ActiveX

Function PDFlib::WaitForRenderJob(JobHandle As Long, TimeoutMS As Long) As Long

Parâmetros

JobHandleO handle retornado por StartRenderPageJob
TimeoutMSA espera máxima em milissegundos; 0 retorna imediatamente após uma checagem não bloqueante

Valores retornados

1–6The RENDER_JOB_STATE_* code observed when the wait returns
0The handle is invalid

Observações

The return value distinguishes completion (RENDER_JOB_STATE_COMPLETED), cancellation (RENDER_JOB_STATE_CANCELLED) and failure (RENDER_JOB_STATE_FAILED) in one call