Open pdf file in my app via iOS 'open with' functionality

Hi,

I’m trying to share a pdf e.g. from a email in order to open it in my app.
My app appears in the iOS ‘open with’-menu and after share a doc, the app opens correctly. How do I handle the file or open it in order to get the text content of the pdf in my app? Thank you for your hints!

diagnosee-plist.info

      <key>CFBundleDocumentTypes</key>
      <array>
        <dict>
          <key>CFBundleTypeIconFiles</key>
          <array>
            <string>Icon-22x29.png</string>
            <string>Icon-44x58.png</string>
            <string>Icon-64x64.png</string>
            <string>Icon-320x320.png</string>
          </array>
          <key>CFBundleTypeName</key>
          <string>Diagnosee</string>
          <key>CFBundleTypeRole</key>
          <string>Viewer</string>
          <key>LSHandlerRank</key>
          <string>Alternate</string>
          <key>LSItemContentTypes</key>
          <array>
            <string>com.adobe.pdf</string>
          </array>
        </dict>
      </array>
      <key>UIFileSharingEnabled</key>
      <true/>