I need to give option to edit the docx content with in my webpage. So i follow the below step its working fine but page count is increase after save html to docx.
1. TransformDocAdvHTML convert docx to html
2. Use ckeditor to show the html content in browser for editing
3. Finally use embedHTML method to convert html to docx.
Code:
$docx->embedHTML($editor1, array('downloadImages' => true, 'strictWordStyles' => false, 'addDefaultStyles' => false, 'removeLineBreaks' => true));
After edit and save the document file count is increase. (Eg. Original page count is 5, after edit and save using the below step the new document 6 page.) . Also the page 1 content move to page 2.
Please advice to resolve my problem.