title: If it's possible to generate a PDF file from a UITableView?
body: <p>My application has a tableview with custom cells(include textfield, label and button), I wanna generate a pdf file from the tableview.</p>
  
  <p>Bellow is the code(now assume the tableview's content is all visible):</p>
  
  <pre><code>    UIGraphicsBeginImageContext(self._tableView.bounds.size);
      UIGraphicsBeginPDFPageWithInfo(CGRectMake(0, 0, self._tableView.bounds.size.width, self._tableView.bounds.size.height), nil);
  
      // what's the code here?
      // [self._tableView drawInRect:];
  
      UIGraphicsEndPDFContext();
  </code></pre>
  
  <p>I always generate an blank pdf file.
  Currently what I do is to generate the tableview as a image, then draw the image to the current context, then will get the pdf file. but any nice idea?</p>