I use the tinyMCE editor, I save its data with mysql, in html from what I can see.
How can I export this data of my users to pdf and docx with php (serverside) ?
I believe the free edition of phpDocx lacks that functionality (embedHTML function missing)
Is there an alternative ?
You should write your html code to a html file serverside and use a library like this one to create a pdf file.