Skip to content

Miscellaneous

Export as PDF

The getPDF button enables you the possibility of exporting the editor content as PDF. The button is included the in the print plugin of the Froala WYSIWYG Editor, so make sure that you include the print plugin.


Edit in JSFiddle

HTML

<div id="froala-editor">
  <p>The <code>getPDF</code> button enables you the possibility of exporting the editor content as PDF. The button is included the in the print plugin of the Froala WYSIWYG Editor, so make sure that you include the print plugin.</p>
</div>

JAVASCRIPT

<!-- Include PDF export JS lib. -->
<script type="text/javascript" src="https://raw.githack.com/eKoopmans/html2pdf/master/dist/html2pdf.bundle.js"></script>

<script>
  $(function() {
    $('div#froala-editor').froalaEditor({
      toolbarButtons: ['getPDF']
    })
  });
</script>
File: 3743