title: Convert canvas to PDF
body: <p>Is it possible to directly convert canvas to pdf using JavaScript (<a href="https://mozilla.github.io/pdf.js" rel="noreferrer"><code>pdf.js</code></a> or something like that)?</p>
  
  <p>Is there another possible way like canvas to img and then img to pdf?</p>
  
  <p>Can you give me an example?</p>