Replies: 1   Views: 1904
Docx to html & html to docx - page count increase
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by segreen-phpdocx  · 09-07-2019 - 13:06

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.


$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.