title: Create Thumbnail of ONLINE PDF for first page only using Imagick
body: <p>I tried to make a thumbnail of a pdf file which is hosted on another server. My current code is:</p>
  
  <pre><code>&lt;?php
  $im = new imagick("http://www.d3publisher.us/Walkthroughs/Naruto_NC_3_DS.pdf");
  $im-&gt;setImageFormat('jpg');
  header('Content-Type: image/jpeg');
  echo $im;
  ?&gt;
  </code></pre>
  
  <p>The problem is that code is only generating thumbnail for LAST PAGE of the pdf file. How can I make a thumbnail for first page only? I tried to add [0] at the imagick line.</p>
  
  <pre><code>$im = new imagick("http://www.d3publisher.us/Walkthroughs/Naruto_NC_3_DS.pdf[0]");
  </code></pre>
  
  <p>but it didn't work. It only work for local pdf file, i.e:</p>
  
  <pre><code>$im = new imagick("my-pdf-file.pdf[0]");
  </code></pre>
  
  <p>Please help me solve this problem.. Thanks..</p>