Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In order to enable your app to open any kind of files that are identified by the OS as images or PDFsPDF files, follow these steps:

1. Register image and PDF file types

...

Code Block
languageswift
        let giniConfiguration = GiniConfiguration.shared
        ...
        ...
        giniConfiguration.openWithEnabled = true

3. Handle incoming images and

...

PDF files

When your app is requested to handle an image or a PDF file your AppDelegate’s application(_:open:options:) (Swift) method is called. You can then use the supplied URL to create a document as shown later.

...

In order to determine that the file opened is valid (correct size, correct type, and number of pages below the threshold on PDFsPDF files), it is necessary to validate it before using it.

...