how to convert each PDF pages to individual images c#
<p>lots of free library available which can convert pdf to images.</p>

<pre><code>   string file = "D:/test.pdf";
   string image = "D:\\test.png";

   try
   {
       GflAx.GflAxClass g = new GflAx.GflAxClass();
       g.EpsDpi = 150;
       g.Page = 1;
       g.LoadBitmap(file);
       g.SaveFormat = GflAx.AX_SaveFormats.AX_PNG;
       g.SaveBitmap(image);
       MessageBox.Show(this, "PDF to PNG conversion ended");
   }
   catch (Exception ex) {
       MessageBox.Show(this, "GflAx error: " + ex.Message);
   }
</code></pre>

<p>another free library like 
<a href="http://code.google.com/p/lib-pdf/" rel="nofollow">http://code.google.com/p/lib-pdf/</a></p>

<p><a href="http://www.codeproject.com/Articles/32274/How-To-Convert-PDF-to-Image-Using-Ghostscript-API" rel="nofollow">http://www.codeproject.com/Articles/32274/How-To-Convert-PDF-to-Image-Using-Ghostscript-API</a></p>

<p><a href="http://www.codeproject.com/Articles/57100/Simple-and-Free-PDF-to-Image-Conversion" rel="nofollow">http://www.codeproject.com/Articles/57100/Simple-and-Free-PDF-to-Image-Conversion</a></p>

<p><a href="http://www.codeproject.com/Articles/42287/Convert-PDF-pages-to-image-files-using-the-Solid-F" rel="nofollow">http://www.codeproject.com/Articles/42287/Convert-PDF-pages-to-image-files-using-the-Solid-F</a></p>

<p>i have 2 requirement like if my pdf file has 20 pages then library which i need to use that will generate 20 images for 20 pages...means one images for each pages at a time and save in folder those images.</p>

<p>another requirement is that if i send page no then it will generate the images only for that page...please guide me which library i need to used to fulfill my requirement.</p>

<p>thanks</p>
