RED-4170 tune heuristic for text-extraction

This commit is contained in:
Timo Bejan 2022-06-08 16:23:24 +03:00
parent 41428cf35e
commit 257ef412b7

View File

@ -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);