title: How to attach CGPDFDocument/CGPDFPage to MFMailComposeViewController
body: <p>I have a muti page pdf document stored on local storage. I want to extract any page out of that pdf doc and convert it into NSData to attach it with 'MFMailComposeViewController'. With the following lines of code, I can easily retrive the required page...</p>
  
  <pre><code>CGPDFDocumentRef pdfDoc=CGPDFDocumentCreateWithURL(pdfURL);
  CGPDFPageRef pdfPage = CGPDFDocumentGetPage(pdfDoc, pageNumber);
  </code></pre>
  
  <p>But I am unable to find a way to convert <code>pdfPage</code> into <code>NSData</code> so that I can attach it with mail.</p>
  
  <p><strong>NOTE:</strong> The requirement is to attach page in PDF format, so please DON'T suggest converting PDF into PNG or JPEG.</p>