title: Symfony sfTCPDF plugin writeHTML error
body: <p>I'm using symfony 1.3, sfTCPDF plugin when i return a html content using curl execution tcpdf is throwing error </p>
  
  <p>Here is my code</p>
  
  <pre><code>$url = "http://urlpath/builder/builder_dev.php/design/agreement?";
  $arguments = "&amp;pdfid=10";
  $ch1 = curl_init();
  $headerinfo = apache_request_headers();
  curl_setopt($ch1, CURLOPT_URL, $url);
  curl_setopt($ch1, CURLOPT_HEADER, 0);
  curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch1, CURLOPT_POSTFIELDS, $arguments);
  curl_setopt($ch1, CURLOPT_USERAGENT,$headerinfo['User-Agent']);
  $result = curl_exec($ch1);
  
  $pdf-&gt;writeHTML("\n\n\n".$result, true, 0);
  $pdf-&gt;Output('Agreement.pdf');
  </code></pre>
  
  <p>When i run the page it shows mnay warning messages first one is</p>
  
  <pre><code>Warning: imagepng() [function.imagepng]: Unable to open '/var/www/html/projectPath/plugins/sfTCPDFPlugin/lib/tcpdf/cache/mska_01754b01ec8372f7001557e3be56ba40' for writing: No such file or directory in /var/www/html/projectPath/plugins/sfTCPDFPlugin/lib/tcpdf/tcpdf.php  on line 8109
  </code></pre>
  
  <p>based on the file it shows other warnings and 
  Here is the error</p>
  
  <pre><code>TCPDF ERROR: Can't open image file: /var/www/html/projectPath/plugins/sfTCPDFPlugin/lib/tcpdf/cache/mska_01754b01ec8372f7001557e3be56ba40
  Notice: Undefined property: sfTCPDF::$userData in /var/www/html/projectPath/plugins/sfTCPDFPlugin/lib/sfTCPDF.class.php on line 112
  </code></pre>
  
  <p>I saw the path </p>
  
  <pre><code>/var/www/html/projectPath/plugins/sfTCPDFPlugin/lib/tcpdf/cache/
  </code></pre>
  
  <p>There is no cache folder. I gave 777 permission to the entire project folder. Eventhough it ends up with this error.</p>