title: vue-html-to-paper with Vue3
body: <p>I'd like to try out vue-html-to-paper and I did the simplest setup according to the documentation. I am using Vue3 though.</p>
  <pre><code>npm install vue-html-to-paper
  </code></pre>
  <pre><code>//main.js
  [...]
  import VueHtmlToPaper from &quot;vue-html-to-paper&quot;;
  
  createApp(App)
    .use(VueHtmlToPaper)
    .mount(&quot;#app&quot;);
  </code></pre>
  <p>And my component:</p>
  <pre><code>&lt;template&gt;
    &lt;div&gt;
      &lt;div id=&quot;example&quot;&gt;
        Hello World
      &lt;/div&gt;
  
      &lt;button @click=&quot;print&quot;&gt;
        Print
      &lt;/button&gt;
    &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  export default {
    name: &quot;my_component&quot;,
  
    methods: {
      print: function() {
        this.$htmlToPaper(&quot;example&quot;);
      },
    },
  &lt;/script&gt;
  [...]
  </code></pre>
  <p>On dev I get an error in console <code>[...] Cannot set property '$htmlToPaper' of undefined [...]</code>. What am I doing wrong?</p>
  <p>Thanks, I'd appreciate a hint.</p>