sgr-ksmt / PDFGenerator

A simple generator of PDF written in Swift.
MIT License
755 stars 110 forks source link

Error when I create PDFDocument with filePath from other app's local folder #121

Open hoangtm12 opened 4 years ago

hoangtm12 commented 4 years ago

When I run "let document = PDFDocument(url: filePath)" on Demo app, if my file is into Demo app's folder, it is ok, but if my file is into other app's folder such as Demo2222 app --> It's error, document is nil. I get filePath, fileName by UIDocumentPickerViewController, and e.thg is ok. Such as: