Merge branch 'RED-9760-watermark' into 'main'
RED-9760: Fixed not working remove watermarks See merge request fforesight/azure-ocr-service!5
This commit is contained in:
commit
b019ca8e2d
@ -23,7 +23,7 @@ public class DocumentRequest {
|
||||
String viewerDocId;
|
||||
String idpResultId;
|
||||
|
||||
boolean removeWatermarks;
|
||||
boolean removeWatermark;
|
||||
|
||||
|
||||
public DocumentRequest(String dossierId, String fileId) {
|
||||
@ -33,15 +33,15 @@ public class DocumentRequest {
|
||||
originDocumentId = null;
|
||||
viewerDocId = null;
|
||||
idpResultId = null;
|
||||
removeWatermarks = false;
|
||||
removeWatermark = false;
|
||||
}
|
||||
|
||||
// needed for backwards compatibility
|
||||
public DocumentRequest(String dossierId, String fileId, boolean removeWatermarks) {
|
||||
public DocumentRequest(String dossierId, String fileId, boolean removeWatermark) {
|
||||
|
||||
this.dossierId = dossierId;
|
||||
this.fileId = fileId;
|
||||
this.removeWatermarks = removeWatermarks;
|
||||
this.removeWatermark = removeWatermark;
|
||||
originDocumentId = null;
|
||||
viewerDocId = null;
|
||||
idpResultId = null;
|
||||
|
||||
@ -63,7 +63,7 @@ public class OcrMessageReceiver {
|
||||
|
||||
fileStorageService.downloadFiles(request, documentFile);
|
||||
|
||||
ocrService.runOcrOnDocument(dossierId, fileId, request.isRemoveWatermarks(), tmpDir, documentFile, viewerDocumentFile, analyzeResultFile);
|
||||
ocrService.runOcrOnDocument(dossierId, fileId, request.isRemoveWatermark(), tmpDir, documentFile, viewerDocumentFile, analyzeResultFile);
|
||||
|
||||
fileStorageService.storeFiles(request, documentFile, viewerDocumentFile, analyzeResultFile);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user