Days
Hours
Minutes
Seconds
x

Froala Editor v4.2.0 is Here LEARN MORE

Skip to content

Miscellaneous

Export as PDF

Try it yourself:


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>