|
@@ -138,8 +138,9 @@ class ComPDFKit: NSObject, CPDFViewBaseControllerDelete, UIDocumentPickerDelegat
|
|
|
var success = false
|
|
|
|
|
|
let homeDiectory = NSHomeDirectory()
|
|
|
+ let bundlePath = Bundle.main.bundlePath
|
|
|
|
|
|
- if (documentPath.hasPrefix(homeDiectory)) {
|
|
|
+ if (documentPath.hasPrefix(homeDiectory) || documentPath.hasPrefix(bundlePath)) {
|
|
|
let fileManager = FileManager.default
|
|
|
let samplesFilePath = NSHomeDirectory().appending("/Documents/Files")
|
|
|
let fileName = document.lastPathComponent
|