title: ImageMagick php imagick loading a file from memory
body: <p>I m trying to integrate imagick into my framework. The framework has the file in memory.</p>
  
  <p>The imagick code works great</p>
  
  <pre><code>/* Read page 1 */
  $im = new imagick( 'test.pdf[0]' );
  
  /* Convert to png */
  $im-&gt;setImageFormat( "png" );
  
  /* Send out */
  header( "Content-Type: image/png" );
  echo $im;
  </code></pre>
  
  <p>Now my problem is imagick constructor takes only path name. How can i load the pdf from memory.</p>
  
  <pre><code>like $im = newImagick($file);
  </code></pre>