title: wkhtmltopdf and pdfkit, "Segmentation fault (core dumped)", although working
body: <p>I'm using PDFKit to convert a webpage to a pdf file and save it in my computer. It works perfectly, but it also prints a message in the terminal, although it works:</p>
  
  <pre><code>"Segmentation fault (core dumped)"
  </code></pre>
  
  <p>The code that I'm using is:</p>
  
  <pre><code>kit = PDFKit.new("link_to_the_website", :page_size =&gt; 'A5')
  file = kit.to_file("myfile.pdf")
  </code></pre>
  
  <p>The second line is the one that causes the error.</p>
  
  <p>I know that PdfKit uses wkhtmltopdf, and I read that wkhtmltopdf has a problem when not in sudo mode, but I can't run my ruby code in sudo mode, and I do not know what to do to fix it. Can someone help me here please?</p>
  
  <p>Links to the gems:</p>
  
  <p><a href="https://github.com/antialize/wkhtmltopdf" rel="nofollow">https://github.com/antialize/wkhtmltopdf</a>
  <a href="https://github.com/pdfkit/pdfkit" rel="nofollow">https://github.com/pdfkit/pdfkit</a></p>