I'm using the magick to convert PDF to Images.
I need to convert the PDF to multiples images. One image by page of PDF.
I have tryed to use this code:
MagickReadSettings settings = new MagickReadSettings();
// Settings the density to 300 dpi will create an image with a better quality
settings.Density = new PointD(300, 300);
using (MagickImageCollection images = new MagickImageCollection())
// Add all the pages of the pdf file to the collection
int page = 1;
foreach (MagickImage image in images)
// Write page to file that contains the page number
image.Write("Snakeware.Page" + page + ".png");
// Writing to a specific format works the same as for a single image
image.Format = MagickFormat.Ptif;
image.Write("Snakeware.Page" + page + ".tif");
I have the erro : The type or namespace name "MagickImageCollection" could not be found (are you missing a using directive or an assembly reference?).
I have checked the references and everytinhg is oK.
I'm using the directive using ImageMagick;
What is wrong?
If anyone has another free option, let me know.