Htmldoc
in package
Convert HTML to MS Word file
Tags
Table of Contents
- $docFile : string
- Document file name
- $htmlBody : string
- HTML body
- $htmlHead : string
- HTML header
- __construct() : mixed
- Class Constructor
- createDoc() : mixed
- Create a MS Word document from HTML
- setDocFileName() : $this
- Set the document file name
- parseHtml() : mixed
- Parse HTML source
- render() : string
- Render the Word document
Properties
$docFile
Document file name
private
string
$docFile
$htmlBody
HTML body
private
string
$htmlBody
$htmlHead
HTML header
private
string
$htmlHead
Methods
__construct()
Class Constructor
public
__construct() : mixed
Return values
mixed —createDoc()
Create a MS Word document from HTML
public
createDoc(string $html[, string $file = '' ]) : mixed
Parameters
- $html : string
-
HTML content
- $file : string = ''
-
Document file name
Return values
mixed —setDocFileName()
Set the document file name
public
setDocFileName(string $docfile) : $this
Parameters
- $docfile : string
Return values
$this —parseHtml()
Parse HTML source
private
parseHtml(string $html, string $file) : mixed
Parameters
- $html : string
-
HTML content
- $file : string
-
Document file name
Return values
mixed —render()
Render the Word document
private
render() : string