title: A Small Zend_Pdf_Color_Rgb problem?
body: <p>I am facing an abnormal problem when <em>trying to write a rectangle with a color in PDF</em> using <strong>Zend_PDF</strong> as shown in the below diagram:
  <img src="https://i.stack.imgur.com/YDr0q.png" alt="enter image description here"></p>
  
  <p>Code is as follow :</p>
  
  <pre><code>require_once 'Zend/Loader/Autoloader.php';
  // register auto-loader
  $loader = Zend_Loader_Autoloader::getInstance();
  try 
  {
      // create PDF
      $pdf = new Zend_Pdf();
      // create A4 page
      $page = new Zend_Pdf_Page(Zend_Pdf_Page::SIZE_A4);
  
      $page-&gt;setFillColor(new Zend_Pdf_Color_Rgb(133,185,13));
      $page-&gt;drawRectangle(40, 500, 560, 475);
      ...........................
      ...........................
  }
  catch (Exception $e) 
  {
      die('Application error: ' . $e-&gt;getMessage());
  }
  </code></pre>
  
  <p><strong><em>Issue :</em></strong> </p>
  
  <hr>
  
  <p><strong>Rectangle is their in the PDF But the color is not shown</strong>. Also I tried to change some color code. And I found that <strong><em>if any one of the color code[i.e. R/G/B] is set to 0 then only the color is shown in the PDF doc.</em></strong></p>
  
  <p>What may be the possible reason? Or I made any mistake?</p>
  
  <p>Please help.!</p>
  
  <p>Thanks In Advance </p>