RED-7075: WatermarkRemoval with javadoc comment
This commit is contained in:
parent
b99f9f26fe
commit
58343a49d3
@ -33,6 +33,14 @@ public class WatermarkRemovalService {
|
||||
final static int MIN_PAGES_THRESHOLD = 3;
|
||||
|
||||
|
||||
/**
|
||||
* The method remove watermark works only for Documents with size greater than MIN_PAGES_THRESHOLD.
|
||||
* First the possible watermarks (big XObjects or Images) will be detected and then checked if those appear on most pages according to the
|
||||
* OCCURING_ON_PAGES_THRESHOLD_FACTOR by using image hashing for similarity and size and stream size of the xobjects.
|
||||
* If so, these detected and confirmed will not be written to the pdf file.
|
||||
* @param pdfFile PDFFile to remove watermarks
|
||||
* @param out The OutputStream the final file will be written to
|
||||
*/
|
||||
@SneakyThrows
|
||||
public void removeWatermarks(InputStream pdfFile, OutputStream out) {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user