Convert PDF (with transparency *and* CMYK) to jpg
问题 I need to generate jpg images from PDF files (first page only). The PDF files are user generated, so they can contain anything. I'm currently using the following code: // Load PDF. $i = new Imagick; // Create thumbnail of first page of PDF. $i->setResolution(150, 150); $i->loadImage("test.pdf[0]"); $i->thumbnailImage(640, 480, true); // Remove transparency, fill transparent areas with white rather than black. $i->setImageBackgroundColor("white"); $i->setImageAlphaChannel(11); // Imagick: