Converts a Microsoft Powerpoint document to XHTML. Returns several nodes, including a parts node, the converted document xml node, and any other document parts (for example, css files and images). The first node is the parts node, which contains a manefest of all of the parts generated as result of the conversion. Does not convert Microsoft Office 2007 and later documents.
|$doc||Microsoft Powerpoint document to convert to HTML, as binary node().|
|$filename||The root for the name of the converted files and directories. If the specified filename includes an extension, then the extension is appended to the root with an underscore. The directory for other parts of the conversion (images, for example) has the string "_parts" appended to the root. For example, if you specify a filename of "myFile.ppt", the generated names will be "myFile_ppt.xhtml" for the xml node and "myFile_ppt_parts" for the directory containing the any other parts generated by the conversion (images, css files, and so on).|
for this conversion.
The default value is |
Therefore, given the following manifest:
<parts> <part>myFile_ppt.xhtml</part> <part>myFile_ppt_parts/conv.css</part> <part>myFile_ppt_parts/toc.xml</part> </parts>
the first node of the returned query is the manifest, the second is the "myFile_ppt.xhtml" node, the third is the "myFile_ppt_parts/conv.css" node, and the fourth is the myFile_ppt_parts/toc.xml node.
var results = xdmp.powerpointConvert( xdmp.documentGet("/space/Hello.ppt"), "Hello.ppt"); var manifest= results.next().value; var pptAsXHTML = results.next().value; pptAsXHTML; => The powerpoint document converted as xhtml. The results variable is a ValueIterator, where the first item is the manifest, and the remaining items are the converted nodes.