I want to convert a pdf to a series of images using magick++. I currently have this code:
Image * img = new Image();
img->read(Tests+"finance-02-2007-multiples.pdf[0]");
Tests is a variable which contains the folder path. The "[0]" means that I want the first page to read in an image.
However, this code snippet does not work. The exception "Magick::ErrorDelegate" appears. I know that ImageMagick uses GhostScript to render the page. Can it be that i need to do something to enalbe GhostScript in ImageMagick first?
Or has someone an ide how to get the code to work?
Thanks so much!