From 257ef412b7f82da66b1a36040f8eebb512197e67 Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Wed, 8 Jun 2022 16:23:24 +0300 Subject: [PATCH] RED-4170 tune heuristic for text-extraction --- .../file-preview/services/annotation-actions.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);