Document Converter
We require a PHP-based function which will receive several document
types and return HTML text.
The function must be able to accept DOC, DOT, DOCX, XML, PDF, TXT and
RTF.
The function will be called by passing a file name to it.
If a file type that is passed that is listed above, the function will
return null.
The function must be able to parse the document, remove all images and
formatting (except for bold, italics and underline), leaving only the
text and line breaks. Hyperlinks should be also be preserved.
The function will then return the aforesaid HTML-formatted next.