Take a look at
GitHub - jhabjan/Ghostscript.NET: Ghostscript.NET - managed wrapper around the Ghostscript library (32-bit & 64-bit)[
^]
This is a library that i mentioned that I used for converting pages of a PDF to images, then using those images to display the document in an MVC application. It looks like the link i provided may be a better option however the method I utilized is found here:
A Simple C# Wrapper for Ghostscript » matthew ephraim's blog[
^]
This method is dependent upon having
gsdll32.dll
in your /bin directory otherwise you'll get run-time errors. The call to converting your PDF to images is the following
void GeneratePageThumb(string inputPath, string outputPath, int page, int dpix, int dpiy, int width = 0, int height = 0)
The idea here that you pass in the PDF you want to convert and it will output (outputPath) all the images that were generated from your PDF.