title: How to set font color and style for PDF using core text?
body: <p>If I create a PDF using <code>core text</code> framework, it will not allow me to set color and font style.
  Is there any problem with "core text" framework?</p>
  
  <p>I am using below code for setting color :</p>
  
  <pre><code>CGContextRef    currentContext = UIGraphicsGetCurrentContext();
  CGContextSetRGBFillColor(currentContext, 1.0, 0.0, 0.0, 1.0);  //This is not working.
  </code></pre>