Forum


Replies: 6   Views: 4199
Trying to keep on the same page with html: text and image with breaks between
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 admin  · 20-08-2015 - 11:21

Hello, If the image and text go to the next page it's due to the image size that should be bigger than the page. Adding an image that fits in the same page doesn't create a new page. We recommend you to use a template with the needed placeholders and replace them with WordFragments or HTML to get the exact needed output. Using the MultiMerge class (http://www.phpdocx.com/api-documentation/docxutilities/merge-Word-documents-with-PHP) or the addExternalFile (http://www.phpdocx.com/api-documentation/templates/replace-variable-external-file-Word-document) you could merge the DOCX if needed. Regards.