title: ImageMagick PDF to JPGs sometimes results in black background
body: <p>I have the following:</p>
  
  <pre><code>ghostscript-fonts-5.50-24
  ImageMagick-6.7.2-1
  ghostscript-9.02-1
  </code></pre>
  
  <p>Which I use to create a series of JPGs for each page using:</p>
  
  <pre><code>convert -density 175 -colorspace sRGB test.pdf -resize 50% -quality 95 test.jpg
  </code></pre>
  
  <p>When I run this on my windows machine all appears to work ok, but on our linux server we get the black background problem.</p>
  
  <p>The resulting JPGs have a black background rendering the image un-readable, what am I missing or is there something I should be doing to correct this?</p>
  
  <p>I've been all over google for days but each suggestion doesnt seem to work for me.</p>
  
  <p>Any help is much appreciated, thanks in advance :)</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Just noticed this output when converting one of the PDFs that produces the black background:</p>
  
  <pre><code>**** Warning: Fonts with Subtype = /TrueType should be embedded.
               The following fonts were not embedded:
                      Arial
                      Arial,Bold
                      Arial,BoldItalic
  **** This file had errors that were repaired or ignored.
  **** The file was produced by:
  **** &gt;&gt;&gt;&gt; Microsoft« Word 2010 &lt;&lt;&lt;&lt;
  **** Please notify the author of the software that produced this
  **** file that it does not conform to Adobe's published PDF
  **** specification.
  </code></pre>
  
  <p>This seems related but as we don't have control over how the PDFs are produced we need some way of fixing this server side.</p>
  
  <p>Thanks again</p>