Skip to content

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

Description

@hoangtm12

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions