diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2020-10-03 18:09:54 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2020-10-03 18:09:54 +0300 |
commit | 5994e5d05b44db4783770c3b71e481513949ad45 (patch) | |
tree | e892056ddff40b97d154e24eefc4c0edb53a8908 /iOSClient | |
parent | 925cbeddc38a059c28f2d8a7e0420e4eaef2a30f (diff) |
coding
Diffstat (limited to 'iOSClient')
-rw-r--r-- | iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift b/iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift index 2aa185523..b2a4d078c 100644 --- a/iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift +++ b/iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift @@ -502,6 +502,8 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate, NC if fileType == "PDF" { let pdfData = NSMutableData() + //let pageSize = CGSize(width: 595.2, height: 841.8) + if password.count > 0 { let info: [AnyHashable: Any] = [kCGPDFContextUserPassword as String : password, kCGPDFContextOwnerPassword as String : password] UIGraphicsBeginPDFContextToData(pdfData, CGRect.zero, info) |