<?xml version="1.0"?><phpdoc><class name="Bs_FileConverter" extends="Bs_Object" undoc="false" access="public" package="file/converter"><file>C:/usr/local/lib/php/blueshoes-4.2/core/file/converter/Bs_FileConverter.class.php</file><doc><author email="andrej@arn.li">andrej arn</author><inherited src="Array"/><description>WISHLIST--------FROM     TO    | CONVERTER LINUX         | CONVERTER WIN32         | COMMENTS                   |---------------+-------------------------+-------------------------+----------------------------|html  -&amp;gt; text  | php (strip tags)        | as linux                |                            |html  -&amp;gt; word  |                         |                         |                            |html  -&amp;gt; pdf   |                         |                         |                            |word  -&amp;gt; html  | wvware                  | as linux (win32 binary) | word me,2000,98,97,95,6.0,2.0  |word  -&amp;gt; text  | catdoc                  | as linux (win32 binary) | word me,2000,98,97,95,6.0,2.0 could need &amp;apos;lynx&amp;apos;.  |word  -&amp;gt; pdf   |                         |                         | word me,2000,98,97,95,6.0,2.0 wvware could do this job if the adobe distiller ($$$) is installed.  |pdf   -&amp;gt; word  |                         |                         |                            |pdf   -&amp;gt; html  |                         |                         |                            |pdf   -&amp;gt; text  |                         |                         |                            |xls   -&amp;gt; html  | xlhtml                  | xlhtml                  |                            |xls   -&amp;gt; text  |                         |                         |                            |xls   -&amp;gt; pdf   |                         |                         |                            |xls   -&amp;gt; csv   | xlhtml | catdoc         | xlhtml | catdoc         |                            |csv   -&amp;gt; xls   | biffwriter              |                         |                            |ppt   -&amp;gt; html  |                         |                         |                            |ppt   -&amp;gt; text  |                         |                         |                            |rtf   -&amp;gt; htmlrtf   -&amp;gt; textpng   -&amp;gt; gif   |                         |                         |                            |png   -&amp;gt; jpg   |                         |                         |                            |gif   -&amp;gt; jpg   |                         |                         |                            |gif   -&amp;gt; png   |                         |                         |                            |gif   -&amp;gt; ascii |                         |                         |                            |jpg   -&amp;gt; gif   |                         |                         |                            |jpg   -&amp;gt; png   |                         |                         |                            |bmp   -&amp;gt; jpg   |                         |                         |                            |tiff  -&amp;gt; jpg   |                         |                         |                            |all methods are called like &amp;apos;htmlToText&amp;apos;, and not the fancy way &amp;apos;html2text&amp;apos;. this is becauseof things like &amp;apos;word62word7&amp;apos; where &amp;apos;word6ToWord7&amp;apos; looks much better.WORD:the wordTo methods should work with versions 2,6,7,8,9 (known as word 2, 6, 95, 97 and 2000)and are tested using versions 6 and xp. (version 2 is not fully supported.)wordxp supports versioning, that means you can store multiple versions of a document in onefile. even then it works fine by using the latest version of your document.the images are not converted. i don&amp;apos;t see why. others have similar problems, and i thinkmore work will be done to make the whole install simpler and make everything work. also someppl have asked for a php module, and that would be nice :).dependencies: Bs_System is loaded right away because it&amp;apos;s used often.Bs_HtmlUtil is loaded on demand.</description><shortdescription>Pseudostatic utility class to convert files from one format to another.</shortdescription><version>4.0.$id$</version><copyright>blueshoes.org</copyright></doc><function name="capable" undoc="false" access="public"><doc><parameter name="$functionName" type="string">not case sensitive.</parameter><return name="" type="bool">true if we can, false if not&#x0a;@throw  NULL on an unknown $functionName</return><description/><shortdescription>Tells whether we can do a conversion or not.</shortdescription></doc></function><function name="&amp;htmlToText" undoc="false" access="public"><doc><parameter name="$htmlString" type="string"/><return name="" type="string">without html (and php etc) tags.</return><description>at first it stripps all tags, then converts html entities back to orig values.problems occur if the html is bad, for example if closing tags are missing.</description><shortdescription>Convert Html =&amp;gt; Text</shortdescription></doc></function><function name="&amp;_wordConvert" undoc="false" access="private"><doc><parameter name="$from" undoc="true"/><parameter name="$filter" undoc="true"/><parameter name="$to" type="string" undoc="true"/><return type="void"/><description/><shortdescription/></doc></function><function name="&amp;wordToText" undoc="false" access="public"><doc><parameter name="$from" type="string">the path and filename to the original word doc.</parameter><return name="" type="mixed"> (bool TRUE if output is saved to file, string otherwise)</return><throws>bs_exception (with custom error text that we can&amp;apos;t control cause it comes from the shell.)</throws><description>converted format may be saved to file or returned.</description><shortdescription>converts a word document to plain text.</shortdescription></doc></function><function name="&amp;wordToHtml" undoc="false" access="public"><doc><parameter name="$from" type="string">the path and filename to the original word doc.</parameter><return name="" type="mixed"> (bool TRUE if output is saved to file, string otherwise)</return><throws>bs_exception (with custom error text that we can&amp;apos;t control cause it comes from the shell.)</throws><description>converted format may be saved to file or returned.</description><shortdescription>converts a word document to html.</shortdescription></doc></function><function name="&amp;wordToWml" undoc="false" access="public"><doc><parameter name="$from" type="string">the path and filename to the original word doc.</parameter><return name="" type="mixed"> (bool TRUE if output is saved to file, string otherwise)</return><throws>bs_exception (with custom error text that we can&amp;apos;t control cause it comes from the shell.)</throws><description>converted format may be saved to file or returned.</description><shortdescription>converts a word document to wml.</shortdescription></doc></function><function name="&amp;wordToLatex" undoc="false" access="public"><doc><parameter name="$from" type="string">the path and filename to the original word doc.</parameter><parameter name="$to" default="NULL," type="string">the path and filename to the newly created file. if set to NULL then the converted format will be returned as string.</parameter><parameter name="$clean" default="FALSE" type="string">default is FALSE, see above</parameter><return name="" type="mixed"> (bool TRUE if output is saved to file, string otherwise)</return><throws>bs_exception (with custom error text that we can&amp;apos;t control cause it comes from the shell.)</throws><description>converted format may be saved to file or returned.clean parameter:there are 2 xml definition files, wvLaTeX.xml and wvCleanLaTeX.xml. i don&amp;apos;tknow what the difference is, what it means, but i guess the not-clean oneis recommended because of the naming (it&amp;apos;s not latex and latexDirty).</description><shortdescription>converts a word document to latex.</shortdescription></doc></function><function name="&amp;wordToAbi" undoc="false" access="public"><doc><parameter name="$from" type="string">the path and filename to the original word doc.</parameter><return name="" type="mixed"> (bool TRUE if output is saved to file, string otherwise)</return><throws>bs_exception (with custom error text that we can&amp;apos;t control cause it comes from the shell.)</throws><description>converted format may be saved to file or returned.</description><shortdescription>converts a word document to abiword.</shortdescription></doc></function><function name="wordSummary" undoc="false" access="public"><doc><parameter name="$filePath" type="string">the path and filename to the word doc.</parameter><return name="" type="array"> (hash, see above.)</return><throws>FALSE</throws><description>it looks like word6 documents don&amp;apos;t work.i&amp;apos;ve read that the wordcount is wrong. what you can do is wordToText and then countthe words yourself, for example using the unix standard utility wc (wordcount) whichtells chars, words and lines.return value; hash with these keys:title, subject, author, keywords, comments, template, lastAuthor, rev (=reference number),appName (application), pageCount, wordCount, charCount, security, codepage.</description><shortdescription>returns information about the given word document.</shortdescription></doc></function><function name="wordVersion" undoc="false" access="public"><doc><parameter name="$filePath" type="string">the path and filename to the word doc.</parameter><return name="" type="array"> (hash, see above.)</return><throws>FALSE</throws><description>return value; hash with these 2 keys:&amp;apos;version&amp;apos;   =&amp;gt; (string)[&amp;apos;word6&amp;apos;, ...]&amp;apos;encrypted&amp;apos; =&amp;gt; (bool)[TRUE|FALSE]note: wordxp identifies itself as word8 (word2000 is older and is word9 ...).</description><shortdescription>returns information about the word version.</shortdescription></doc></function><function name="Bs_FileConverter" undoc="true" access="public"><doc><return type="void"/></doc></function><function name="loadBsHtmlUtil" undoc="true" access="private"><doc><return type="void"/></doc></function><function name="htmlToWord" undoc="true" access="private"><doc><return type="void"/></doc></function><function name="htmlToPdf" undoc="true" access="private"><doc><return type="void"/></doc></function><variable name="$_APP" access="private" type="array"><doc><description/><shortdescription>reference to the global settings array</shortdescription></doc></variable><variable name="$_Bs_System" access="private" type="string">NULL<doc><description/><shortdescription>reference to the global pseudo-static object</shortdescription></doc></variable><variable name="$_Bs_Html" access="private" type="string">NULL<doc><description>used by htmlToText()</description><shortdescription>reference to the global pseudo-static object.</shortdescription></doc></variable><variable name="$_Bs_File" access="private" type="object [unknown]"><doc><description/><shortdescription>instance of Bs_File, if used at all.</shortdescription></doc></variable><constant name="BS_FILECONVERTER_VERSION" undoc="true" access="private" case="default: case sensitive">4.0.$x$<doc></doc></constant><inherited src="Bs_Object" type="functions"><element>isex</element><element>isexception</element><element>tostring</element><element>tohtml</element><element>persist</element><element>unpersist</element><element>bs_object</element><element>bbsetoutput</element><element>bbawake</element><element>bbisawake</element><element>bbxmsg</element><element>bbxfunctionstart</element><element>bbxfunctionend</element><element>bbxecho</element><element>bbxvar</element><element>bbxvardump</element><element>bbforcetrace</element><element>bbbufferstart</element><element>bbbufferget</element><element>bbbufferendflush</element><element>bbbufferendclean</element></inherited><inherited src="Bs_Object" type="consts"><element>bs_object_version</element></inherited><path><parent>Bs_Object</parent></path><baseclass>Bs_Object</baseclass><subclasses><subclass>Bs_FileConverterExcel</subclass></subclasses></class></phpdoc>