PHP Classes

How can PHP Convert HTML to Word with HTML to DOC Converter: Convert HTML into Microsoft Word documents

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 64%Total: 19,602 All time: 35 This week: 44Down
Version License PHP version Categories
html_to_doc 1.0.0Freeware4HTML, XML, Files and Folders
Description 

Author

This class can be used to convert HTML pages into Microsoft Word documents in the XML format.

It can parse a HTML document given as a HTML data string or a page URL. Then it extracts the HTML document header and body and rewrite it with a Microsoft Word document XML header.

Picture of Harish Chauhan
Name: Harish Chauhan is available for providing paid consulting. Contact Harish Chauhan .
Classes: 28 packages by
Country: India India
Age: ???
All time rank: 32 in India India
Week rank: 46 Down4 in India India Down
Innovation award
Innovation award
Nominee: 1x

Example

<?php
   
include("html_to_doc.inc.php");
   
   
$htmltodoc= new HTML_TO_DOC();
   
   
//$htmltodoc->createDoc("reference1.html","test");
   
$htmltodoc->createDocFromURL("http://yahoo.com","test");
   

?>


  Files folder image Files (2)  
File Role Description
Plain text file html_to_doc.inc.php Class Class
Accessible without login Plain text file html_to_doc_example.php Example example

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:19,602
This week:0
All time:35
This week:44Down
User Ratings User Comments (14)
 All time
Utility:93%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:-
Examples:89%StarStarStarStarStar
Tests:-
Videos:-
Overall:64%StarStarStarStar
Rank:677
 
The package is not usable with php 8.
11 months ago (georgios spanos)
55%StarStarStar
live saver :)
8 years ago (Mick)
70%StarStarStarStar
Its amazing!
10 years ago (Deadangel)
70%StarStarStarStar
There is some problem with this library.
11 years ago (Praveen)
50%StarStarStar
good tutorials
11 years ago (Rahul Shambharkar)
70%StarStarStarStar
i don't now if it''s possible to do, but in my case the DOC f...
11 years ago (Carlos Santos)
65%StarStarStarStar
Found some bugs that should be fixed, on line 214 (I believe)...
14 years ago (Ryan Naddy)
70%StarStarStarStar
Is very very usefull, I generate reports un HTML, and this pa...
12 years ago (Alfredo Yong)
62%StarStarStarStar
excelent!!!!
12 years ago (raphael souza)
70%StarStarStarStar
This class is not working on linux machine when i m runnig th...
13 years ago (gaurav porwal)
52%StarStarStar
It doesn't handle images.
13 years ago (Bruce Geroux)
70%StarStarStarStar
This is great - does exactly what I needed
14 years ago (mike solomon)
65%StarStarStarStar
Yes, I have found proper solution to get this class Thanks t...
16 years ago (Pran Paul)
55%StarStarStar
i modified this class to set a destination directory where the .
17 years ago (juan romay)
70%StarStarStarStar