DM-318: remove all images

This commit is contained in:
Kilian Schuettler 2023-07-12 15:59:54 +02:00
parent 36fcc88671
commit 12eee9482d
2 changed files with 10 additions and 0 deletions

View File

@ -164,6 +164,7 @@ public class SectionNodeFactory {
}
@SuppressWarnings("PMD")
private List<TextPageBlock> findTextBlocksWithSameClassificationAndAlignsYAndSameOrientationUntilConvergence(TextPageBlock originalTextBlocks,
List<AbstractPageBlock> pageBlocks) {

View File

@ -1110,6 +1110,15 @@ rule "X.0.0: remove Entity contained by Entity of same type"
retract($contained);
end
// Rule unit: X.7
rule "X.7.0: remove all images"
salience 512
when
$image: Image(imageType != ImageType.OCR)
then
$image.remove("X.7.0", "remove all images");
retract($image);
end
//------------------------------------ File attributes rules ------------------------------------