diff --git a/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts b/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts index f1166db04..2a0f691f4 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts @@ -559,9 +559,9 @@ export class AnnotationActionsService { const percentHeightOffset = rect.height / 10; const pdfNetRect = new this._pdf.PDFNet.Rect( - rect.topLeft.x, + rect.topLeft.x + 2, rect.topLeft.y + percentHeightOffset, - rect.topLeft.x + rect.width, + rect.topLeft.x + rect.width - 2, rect.topLeft.y + rect.height - percentHeightOffset, ); const quadWords = await this._extractTextFromRect(page, pdfNetRect);