Skip to content
.github-star { padding-left: 15px; margin-bottom: 15px; }

Miscellaneous

Export as PDF

Try it yourself:

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>
  new FroalaEditor('div#froala-editor', {
    toolbarButtons: ['getPDF']
  })
</script>
File: 1577