CancelRenderJob
文档检查、渲染
描述
请求正在运行或暂停的渲染作业在下一个内容流运算符边界中止其页面
渲染器会在运算符之间检查取消标志,干净地退出循环,作业以已取消状态结束;已暂停的作业会先从其闸门释放,以便检查该标志
语法
Delphi
Function TPDFlib.CancelRenderJob(JobHandle: Integer): Integer;DLL
int DLCancelRenderJob(int InstanceID, int JobHandle);ActiveX
Function PDFlib::CancelRenderJob(JobHandle As Long) As Long参数
| JobHandle | StartRenderPageJob 返回的句柄 |
|---|
返回值
| 1 | 已接受取消请求 |
|---|---|
| 0 | 句柄无效 |
备注
取消后 GetRenderJobState 会报告 RENDER_JOB_STATE_CANCELLED