RED-8385: add functionality to ignore specific marked contents
This commit is contained in:
parent
72b4e98538
commit
4888ac1608
@ -86,6 +86,7 @@ public class InvisibleElementRemovalService {
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This method is equal to {@link #removeInvisibleElements(InputStream, OutputStream, boolean, boolean, Set)}, with removePaths == true and markedContentsToIgnore = Set.of("KNECON_OCR").
|
||||
*/
|
||||
@ -95,6 +96,15 @@ public class InvisibleElementRemovalService {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This method is equal to {@link #removeInvisibleElements(InputStream, OutputStream, boolean, boolean, Set)}, with removePaths == true and markedContentsToIgnore = Set.of("KNECON_OCR").
|
||||
*/
|
||||
public void removeInvisibleElementsButKeepOcrText(PDFDoc pdfFile, boolean delta) {
|
||||
|
||||
removeInvisibleElements(pdfFile, delta, true, Set.of("KNECON_OCR"));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This method is equal to {@link #removeInvisibleElements(InputStream, OutputStream, boolean, boolean, Set)}, with markedContentsToIgnore == emptySet().
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user