Edit
by Sujan - 4 years ago (2020-10-09)
Send generated docx document as body of email message
| I have generate a merged docx stored on file.
Now I would like to send the content of that document as the body of my email.
I have used PHPMailer package for sending the email using SMTP. Only the body has to come from the this docx on the server. It has simples table and 2 images as well. |
Ask clarification
3 Recommendations
This class can convert Microsoft Word DOCX documents to HTML.
It improves a class initially written by Rohit Arya, which can work well under PHP 8.1 or later.
In the original Word DOCX document, this class version recognizes nearly all the formatting, styles, images, footnotes, endnotes, bookmark links, mathematical equations, etc..
The resultant HTML should look very much like the original.
| by Timothy Edwards package author 30 - 3 years ago (2021-10-22) Comment
This enhanced DOCX to HTML class will create an html page that looks very similar to the original Word document |
This class can convert Microsoft Word DOCX document to HTML.
It can take file name of a Microsoft Word DOCX and extract its contents to obtain the XHTML document and image files.
The class can parse the contained XHTML files and process its tags to convert Microsoft Word XHTML tags into regular HTML tags.
Currently it can convert paragraph tags, formatting tags, image tags, link tags and table tags.
| by Samuel Adeshina 1015 - 4 years ago (2020-10-30) Comment
Here's a link to a package that can help with this. |
This class can create a PDF file from images in a directory.
It can scan a given directory and open image files to create a PDF document that will contain those images.
The class provides options to define the image directory, patterns to filter the image files to be included in the document and the output PDF file path.
| by Manuel Lemos 26695 - 4 years ago (2020-10-12) Comment
This package seems to do exactly what you are looking for. |
- 2 Comments
1.
by Sujan - 4 years ago (2020-10-12) Reply
No, I want to convert a DOCX to HTML. Not just images to html. The thread you recommended does not convert the entire DOCX to html. Sorry and it also says that it is converted to pdf?
2.
by Manuel Lemos - 4 years ago (2020-10-30) in reply to comment 1 by Sujan Reply
Sorry, I meant to recomend this package instead that seems to do what you want.
https://www.phpclasses.org/package/11834-PHP-Convert-Microsoft-Word-DOCX-document-to-HTML.html