Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hoangtm12 opened this issue Apr 11, 2020 · 0 comments

Comments

@hoangtm12
Copy link

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:

  • FilePath Demo app:
    file:///private/var/mobile/Containers/Data/Application/D3EB4157-93C7-48DB-9515-F4993E1FA172/Documents/aaa.pdf ----> OK
  • FilePath Demo222 app:
    file:///private/var/mobile/Containers/Data/Application/D3EB4157-93C7-48DB-9515-F4993E1FA1224/Documents/aaa.pdf --> NOT OK, document is nil.
    So, how can I create a PDFDocument from other app's local folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant