Browse Source

Improved code

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
3c7e2a52ab
1 changed files with 2 additions and 0 deletions
  1. 2 0
      iOSClient/Main/Create cloud/NCUploadScanDocument.swift

+ 2 - 0
iOSClient/Main/Create cloud/NCUploadScanDocument.swift

@@ -125,6 +125,7 @@ class NCUploadScanDocument: ObservableObject {
 
             image = changeCompressionImage(image, quality: quality)
             let bounds = CGRect(x: 0, y: 0, width: image.size.width, height: image.size.height)
+
             if isTextRecognition {
 
                 UIGraphicsBeginPDFPageWithInfo(bounds, nil)
@@ -160,6 +161,7 @@ class NCUploadScanDocument: ObservableObject {
                 try? requestHandler.perform([request])
 
             } else {
+
                 UIGraphicsBeginPDFPageWithInfo(bounds, nil)
                 image.draw(in: bounds)
             }