It looks like you’re browsing an old version of Froala. Please go to the newer version of our docs for a more updated version.
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.
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>