PHP Classes

What is the best PHP convert docx to html with images class?: Send generated docx document as body of email message

Recommend this page to a friend!
  All requests RSS feed  >  What is the best PHP convert docx to ...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

What is the best PHP convert docx to html with images class?

A request is featured when there is no good recommended package on the site when it is posted. Edit

Picture of Sujan by Sujan - 4 years ago (2020-10-09)

Send generated docx document as body of email message

This request is clear and relevant.
This request is not clear or is not relevant.

+4

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

PHP Parse DOCX to HTML with Images: Convert Microsoft Word DOCX document to HTML

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.
This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of Timothy Edwards by Timothy Edwards package author package author Reputation 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


PHP Word DOCX to HTML with Images: Convert Microsoft Word DOCX document to HTML

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.
This recommendation solves the problem.
This recommendation does not solve the problem.

+3

Picture of Samuel Adeshina by Samuel Adeshina Reputation 1015 - 4 years ago (2020-10-30) Comment

Here's a link to a package that can help with this.


PHP Image to PDF Converter: Create a PDF file from images in a directory

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.
This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Manuel Lemos by Manuel Lemos Reputation 26695 - 4 years ago (2020-10-12) Comment

This package seems to do exactly what you are looking for.

  • 2 Comments
  • 1. Picture of Sujan 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. Picture of Manuel Lemos 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


Recommend package
: 
: