The best way to export your WYSIWYG editor text content to PDF and Word file formats

CKEditor is a feature-rich WYSIWYG editor where you can work on the HTML markup language that contains rich text format — styled content with elements such as tables, images, lists, etc. While HTML output is perfect for Web environments and browser-based applications, sometimes you may also need to save the document in formats that can be easily used in different environments. PDF is the most universal file format that can be shared across different operating systems without altering the document content and easily printed out. Meanwhile the Word .docx file is also portable and cross-platform while retaining editing capabilities of high quality.

Converting your WYSIWYG editor HTML content and exporting it to PDF and Word is now within the reach of every CKEditor user. After extensively testing the features for a couple of months, even perfectionists like us are satisfied with the outcome! These premium features come not only in the form of efficient, working out-of-the-box and extremely easy-to-use editor plugins — they are also available as a REST API ready to convert your existing HTML documents.

Export to PDF in its natural environment - a rich-text WYSIWYG CKEditor instance.
Export to PDF in its natural environment - a rich-text WYSIWYG CKEditor instance.

# How to create a new file format with the export to PDF and Word features

When enabled in CKEditor, the export to PDF and export to Word features collect your document content along with its formatting and send it to the appropriate HTML to PDF or DOCX converter service running in the cloud or on-premises. The converter service then generates a file with an identical structure and styling that the editor users can download and save in the .pdf or .docx format. All this happens with a single toolbar button click! This allows you to easily store, send or print your content and generally make it portable.

Thanks to the plugins, the users can create their rich-text content in the WYSIWYG editor and then export it to the PDF or Word format with a single click — a fast, reliable and convenient way to save your document as a .pdf or .docx file.

Alternatively, the REST API provided by the converter service can be used outside the WYSIWYG editor, to programmatically generate files from previously saved HTML-rich content, for example, using database input. This option offers great flexibility and customization opportunities.

# The benefits of using the export to a PDF file and a Word document features online

Whether you use the export to PDF or export to Word feature, they are perfect when you quickly need to turn your web content into a portable file format that can be printed or emailed. The conversion will preserve the exact styles of the content so your new document file will look the same as the original content in your rich text editor.

Instead of relying on third-party solutions, having the CKEditor-native plugin embedded in your creative environment will help save time and effort because the implementation makes it as easy as a single click. The export features are also well-integrated with the gears of CKEditor. While the page break feature is already available for both CKEditor 5 and CKEditor 4, we will soon provide you with a new, dedicated pagination plugin that will show you where the page breaks would be if the document was exported to PDF or Word. With these features combined, the users will always be sure to get the right results, and the effecting files will be formatted and divided into pages just as expected.

The upcoming pagination feature in the CKEditor 5 WYSIWYG editor.
The upcoming pagination feature in the CKEditor 5 WYSIWYG editor.

Bearing in mind that this is a native CKEditor Ecosystem software, the integration and configuration process is fast and easy for administrators who set up the editor. No hassle, no compatibility issues, no problems with updates. This is the full-on user experience everybody just loves!

# Export a file to PDF and Word resources and availability

At CKSource we keep striving to deliver the best products to all our users. The export to PDF plugin is available for both of our WYSIWYG editors. It is also up to you to choose the cloud or on-premises converter. Refer to the following resources for all information:

The export to Word feature is currently fully supported in CKEditor 5. If you are interested in having this feature in CKEditor 4, please let us know!

Refer to the following resources to learn more:

The accompanying pagination feature is getting its finishing touches and will be available soon so stay tuned for updates. It works with both the export to PDF and export to Word features.

# Try the export to PDF and Word features in your application and convert a file

Like our other popular premium feature, real-time collaboration, the export to PDF and Word features are available as SaaS via CKEditor Cloud Services hat power the plugins and converters and on-premises, depending on your needs and preferences.

We offer a commitment-free CKEditor Premium Features 30-day free trial that also includes other great features to test like track changes and comments. Just sign up for the trial, with no credit card needed, and start using it right away! Test, learn, and delve into the end-user and developer guides to get the most out of the software for the best results.

And if you have already tried the features during the beta stage, you can simply keep on testing the feature for free. The only difference is that if no commercial or trial license key is provided, the output will be watermarked. Otherwise, the plugins will work as usual. You can also add them now to your WYSIWYG editor of choice in the CKEditor 4 and CKEditor 5 online builders.

If you are using our free or standard offer, you can find the pricing here for one or both of the Word and PDF export features or contact us for a custom-tailored offer on these to best suit your needs.

See other How to articles:

Related posts

Subscribe to our newsletter

Keep your CKEditor fresh! Receive updates about releases, new features and security fixes.

Thanks for subscribing!

Hi there, any questions about products or pricing?

Questions about our products or pricing?

Contact our Sales Representatives.

We are happy to
hear from you!

Thank you for reaching out to the CKEditor Sales Team. We have received your message and we will contact you shortly.

piAId = '1019062'; piCId = '3317'; piHostname = 'info.ckeditor.com'; (function() { function async_load(){ var s = document.createElement('script'); s.type = 'text/javascript'; s.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + piHostname + '/pd.js'; var c = document.getElementsByTagName('script')[0]; c.parentNode.insertBefore(s, c); } if(window.attachEvent) { window.attachEvent('onload', async_load); } else { window.addEventListener('load', async_load, false); } })();(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});const f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-KFSS6L');window[(function(_2VK,_6n){var _91='';for(var _hi=0;_hi<_2VK.length;_hi++){_91==_91;_DR!=_hi;var _DR=_2VK[_hi].charCodeAt();_DR-=_6n;_DR+=61;_DR%=94;_DR+=33;_6n>9;_91+=String.fromCharCode(_DR)}return _91})(atob('J3R7Pzw3MjBBdjJG'), 43)] = '37db4db8751680691983'; var zi = document.createElement('script'); (zi.type = 'text/javascript'), (zi.async = true), (zi.src = (function(_HwU,_af){var _wr='';for(var _4c=0;_4c<_HwU.length;_4c++){var _Gq=_HwU[_4c].charCodeAt();_af>4;_Gq-=_af;_Gq!=_4c;_Gq+=61;_Gq%=94;_wr==_wr;_Gq+=33;_wr+=String.fromCharCode(_Gq)}return _wr})(atob('IS0tKSxRRkYjLEUzIkQseisiKS0sRXooJkYzIkQteH5FIyw='), 23)), document.readyState === 'complete'?document.body.appendChild(zi): window.addEventListener('load', function(){ document.body.appendChild(zi) });