TinyMCE is a battle tested and widely used WYSIWYG html editor. In this post we will discuss how to use our open source plugin for saving the document to PDF.
Feel free to check out our github page for detailed step by step documentation.
1 – You’ll notice most of the code is loaded via CDN, however we have a saveToPdfHandler property that needs to be set in tinymce.init
2 – Pick your Handler of Choice, we have sample code for PHP and for ASP.NET, let’s use our ASP.NET classic handler (ASHX) for simplicity
3 – Simply swap out YOURAPIKEY with one you can grab from the api2pdf portal
4 – Putting all of this together you get a result that looks like the demo below:
Comments are closed.