PHP Classes

File: examples/ooffice_example2.php

Recommend this page to a friend!
  Classes of Piotr Malinski   OpenOffice 2 HTML   examples/ooffice_example2.php   Download  
File: examples/ooffice_example2.php
Role: Example script
Content type: text/plain
Description: Example2 for OOffice
Class: OpenOffice 2 HTML
Convert OpenOffice Writer documents to HTML
Author: By
Last change:
Date: 18 years ago
Size: 241 bytes
 

Contents

Class file image Download
<?PHP
include '../office.class.php';
$x = new office();
// Unzip with PECL - ZIP and don't save
$u = $x->oo_unzip('office.odt');
// Convert the document in the fly and save the results to a file:
$x->oo_to_file('result.html', $u[0], 2);
 
?>