title: Get file name of copied document off UIPasteBoard
body: <p>I am trying to add a feature to an existing iOS app so that documents "copied" within Mail (say a PDF) can be pasted into my app.</p>
  
  <p>After a PDF document is viewed in Mail and "Copy" chosen from the Action menu, within my app's code, when I inspect:</p>
  
  <p><code>[[UIPasteboard generalPasteboard] items]</code></p>
  
  <p>I can see the document as per:</p>
  
  <pre><code>{
      "com.adobe.pdf" = {length = 875113, bytes = 0x25504446 2d312e35 0d0a25b5 b5b5b50d ... 300d0a25 25454f46 };
  }
  )
  </code></pre>
  
  <p>And further retrieve it via:</p>
  
  <pre><code>po [[UIPasteboard generalPasteboard] valueForPasteboardType:@"com.adobe.pdf"]
  &lt;OS_dispatch_data: data[0x2820e5c00] = { leaf, size = 875113, buf = 0x1125e0000 }&gt;
  </code></pre>
  
  <p>However, is there any way to get the document's name?  In the Files.app when I paste the same document it gets pasted as the original file name.</p>
  
  <p>Should I be using the pasteboard for this, or if there another API which can get access to the copied document with the file name?</p>