RED-10249: regex found incorrectly due to wrong text sorting
This commit is contained in:
parent
7338e06fb0
commit
ca2f3512d2
@ -243,10 +243,7 @@ public class LayoutParsingPipeline {
|
|||||||
|
|
||||||
List<ClassificationPage> classificationPages = new ArrayList<>();
|
List<ClassificationPage> classificationPages = new ArrayList<>();
|
||||||
|
|
||||||
// parsing the structure elements could be useful as well
|
classificationDocument.setOutlineObjectTree(outlineExtractorService.getOutlineObjectTree(originDocument));
|
||||||
if (layoutParsingType != LayoutParsingType.REDACT_MANAGER_OLD) {
|
|
||||||
classificationDocument.setOutlineObjectTree(outlineExtractorService.getOutlineObjectTree(originDocument));
|
|
||||||
}
|
|
||||||
|
|
||||||
long pageCount = originDocument.getNumberOfPages();
|
long pageCount = originDocument.getNumberOfPages();
|
||||||
|
|
||||||
@ -363,11 +360,11 @@ public class LayoutParsingPipeline {
|
|||||||
|
|
||||||
|
|
||||||
private static void updateClassificationPage(PDPage pdPage,
|
private static void updateClassificationPage(PDPage pdPage,
|
||||||
PDRectangle pdr,
|
PDRectangle pdr,
|
||||||
ClassificationPage classificationPage,
|
ClassificationPage classificationPage,
|
||||||
CleanRulings cleanRulings,
|
CleanRulings cleanRulings,
|
||||||
int pageNumber,
|
int pageNumber,
|
||||||
PageInformation pageInformation) {
|
PageInformation pageInformation) {
|
||||||
|
|
||||||
int rotation = pdPage.getRotation();
|
int rotation = pdPage.getRotation();
|
||||||
boolean isLandscape = pdr.getWidth() > pdr.getHeight() && (rotation == 0 || rotation == 180) || pdr.getHeight() > pdr.getWidth() && (rotation == 90 || rotation == 270);
|
boolean isLandscape = pdr.getWidth() > pdr.getHeight() && (rotation == 0 || rotation == 180) || pdr.getHeight() > pdr.getWidth() && (rotation == 90 || rotation == 270);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user