Skip to content

Commit 84e0e8d

Browse files
committed
Update pdf-engine.ts
1 parent 8bebed9 commit 84e0e8d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

packages/engines/src/lib/orchestrator/pdf-engine.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,13 @@ export class PdfEngine<T = Blob> implements IPdfEngine<T> {
375375
page: PdfPageObject,
376376
options?: PdfRenderPageAnnotationOptions,
377377
): PdfTask<AnnotationAppearanceMap> {
378-
return this.executor.renderPageAnnotationsRaw(doc, page, options);
378+
return this.workerQueue.enqueue(
379+
{
380+
execute: () => this.executor.renderPageAnnotationsRaw(doc, page, options),
381+
meta: { docId: doc.id, pageIndex: page.index, operation: 'renderPageAnnotationsRaw' },
382+
},
383+
{ priority: Priority.MEDIUM },
384+
);
379385
}
380386

381387
/**

0 commit comments

Comments
 (0)