RED-4170 tune heuristic for text-extraction
This commit is contained in:
parent
41428cf35e
commit
257ef412b7
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user