RED-8385: add functionality to ignore specific marked contents

This commit is contained in:
Kilian Schuettler 2024-02-01 12:21:19 +01:00
parent 72b4e98538
commit 4888ac1608

View File

@ -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().
*/