How can I export a WORD with an image in PHP?

Source: Internet
Author: User
Tags phpword
How to export a WORD with an image in PHP: 1. use the MHT to convert the DOC file in the MhtFileMaker. php class. The image is blank and has no size. (The format is not what I want) 2. the phpWord class is exported using addImages, and the image size is blank. The exported DOC file is 135KB, which is equivalent to exporting a WORD with an image in PHP.
Usage:
1. MhtFileMaker. php class. use MHT to convert DOC. The image is blank and has no size. (The format is not what I want)
2. the phpWord class is exported using addImages, and the image size is also blank. The exported DOC file is KB, which is equivalent to storing the size and capacity attributes. why cannot this attribute be displayed ?!
3. COM component. Although everyone said it was a stupid method, the loading of the guy was too slow and basically failed. (The browser always reads the status)

++
In this solution, only images in the format are exported using PHP.
Thank you !! PhpWord MhtFileMaker COM component
------ Solution --------------------
I don't have word2007. I usually use wps to open docx files.
The image.docx generated by the phpword sample program image. php cannot be seen by wps.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.