RED-8385: add functionality to ignore specific marked contents
This commit is contained in:
parent
4888ac1608
commit
09d8ac4e9c
@ -37,6 +37,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
public class InvisibleElementRemovalService {
|
public class InvisibleElementRemovalService {
|
||||||
|
|
||||||
static public final double TOLERANCE = 1;
|
static public final double TOLERANCE = 1;
|
||||||
|
public static final String KNECON_OCR = "KNECON_OCR";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -92,7 +93,7 @@ public class InvisibleElementRemovalService {
|
|||||||
*/
|
*/
|
||||||
public void removeInvisibleElementsButKeepOcrText(InputStream pdfFile, OutputStream out, boolean delta) {
|
public void removeInvisibleElementsButKeepOcrText(InputStream pdfFile, OutputStream out, boolean delta) {
|
||||||
|
|
||||||
removeInvisibleElements(pdfFile, out, delta, true, Set.of("KNECON_OCR"));
|
removeInvisibleElements(pdfFile, out, delta, true, Set.of(KNECON_OCR));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -101,7 +102,7 @@ public class InvisibleElementRemovalService {
|
|||||||
*/
|
*/
|
||||||
public void removeInvisibleElementsButKeepOcrText(PDFDoc pdfFile, boolean delta) {
|
public void removeInvisibleElementsButKeepOcrText(PDFDoc pdfFile, boolean delta) {
|
||||||
|
|
||||||
removeInvisibleElements(pdfFile, delta, true, Set.of("KNECON_OCR"));
|
removeInvisibleElements(pdfFile, delta, true, Set.of(KNECON_OCR));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user