title: Trouble using wkhtmlpdf gem
body: <p>I am having trouble using wkhtmlpdf gem on my machine. OS - ZorinOS. This is the error I am getting when trying to download or view a pdf file on the rails server -</p>
  <blockquote>
  <p>Error: PDF could not be generated!
  Command Error:
  /home/my-user/.rvm/gems/ruby-3.0.1@somename/gems/wkhtmltopdf-binary-0.12.6.5/bin/wkhtmltopdf:61:in `&lt;top (required)&gt;': Invalid platform, must be running on Ubuntu
  16.04/18.04/20.04 CentOS 6/7/8, Debian 9/10, archlinux amd64, or intel-based Cocoa macOS (missing binary:
  /home/my-user/.rvm/gems/ruby-3.0.1@somename/gems/wkhtmltopdf-binary-0.12.6.5/bin/wkhtmltopdf_zorin_16_amd64).
  (RuntimeError)</p>
  </blockquote>
  <p>I tried following this command to try to resolve which I found on a <a href="https://github.com/zakird/wkhtmltopdf_binary_gem/issues/62" rel="nofollow noreferrer">GitHub issue</a> for wkhtmltopdf_binary_gem. But this too could not solve it.</p>
  <pre><code>wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
  sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
  sudo apt -f install
  </code></pre>
  <p>Using the command <code>type wkhtmltopdf</code> I get <code>wkhtmltopdf is /home/mu-user/.rvm/gems/ruby-3.0.1@somename/bin/wkhtmltopdf </code></p>