title: How do I improve quality when using RMagick/ImageMagick to convert from SVG to PDF?
body: <p>I use Rubyvis to generate SVG plots, and then allow the user to save either to SVG directly, or to some other format using RMagick.</p>
  
  <p>The SVG plots have a set size, which is specified in the SVG file. It seems to me, then, that it should be trivial to convert to a PDF of the same size.</p>
  
  <p>Unfortunately, this appears not to be the case. I can produce a PDF in this manner, but it is much larger (dimension-wise) than the PDFs produced if I first open the SVG in inkscape and then print-to-file as a PDF.</p>
  
  <p>Worse, the PDF image quality is terrible.</p>
  
  <p>Am I missing some instruction for Magick? Here's the code:</p>
  
  <pre><code>image = Magick::Image::from_blob(svg_string_data) { self.format = 'SVG' }
  image[0].format = 'PDF'
  image[0].to_blob
  </code></pre>
  
  <p>I then write the value returned (the PDF blob) directly into a file.</p>