title: Imagick/Ghostscript alternative for converting pdf to jpg
body: <p>I'm trying to convert pdf files into jpg-format using imagick/ghostscript (v9.10, obviously the latest built for ubuntu 14.04) and php. Unfortunately imagick keeps removing special characters like <strong>é</strong> or <strong>ö</strong>. I assume missing fonts are responsible for this type of behaviour. I receive the PDF files from dozens different companies and they often change their used fonts. Thus i'm not able to import any of the used fonts.
  I'd like to convert pdf to jpg (or png) and resize it a bit, thats all. Is there another possible sollution not requiring ghostscript?
  Edit: source code</p>
  
  <pre><code>foreach(glob("$files_temp*.pdf") as $globpdf){
              $imagick = new Imagick(); 
              $imagick-&gt;readImage($globpdf);
              $imgname=basename($globpdf,".pdf");
              $imagick-&gt;setImageCompressionQuality(25);
              $imagick-&gt;setImageFormat('jpg');
  
              $imagick-&gt;writeImage($files_img.$imgname.'.jpg');
              $imgsql=$imgname.'.jpg';
              }
  </code></pre>