OpenDocument is a package to read, create or modify office documents in open document format.
OpenDocument format is a replacement for proprietary office formats such as .doc or .xls. This package is a very useful tool for php developers and another point to switch from proprietary office formats to OpenDocument one, that means switching to open source software and standards.
OpenDocument was developed as a project of Google Summer of Code 2006 Program.
Package provides object oriented style for working with open documents, a little similar to DOM as for XML.
$odt = new OpenDocument;
$h = $odt->createHeading('Heading', 1);
$p1 = $odt->createParagraph('Paragraph 1');
$p1->style->fontSize = '12pt';
$p1->style->fontName = 'Times New Roman';
$p2 = $odt->createParagraph('Paragraph 2');
$a1 = $p1->createHyperlink('Test link', 'http://www.example.com');
define a custom exception class that extends from PEAR_Exception
add phpdoc comments
add a license note at the top
make sure that the case of the files matches the case in the class names
fix directory structure to map "_" to "/"
- generate DOM on load and save only, this will allow to increase productivity
- add operations with metadata
- add loadHTML() and saveHTML() methods
- PHP 5
- ZipArchive >= 1.7.0
First Draft: 2006-08-14
- Proposal: 2006-08-14
- Call for Votes: 2006-08-21
Alexander PakAdded planed changes
[2006-08-14 19:57 UTC]
Alexander PakChanged ZipArchive required version
[2006-08-14 20:07 UTC]
Alexander PakAdded comments to example source file
[2006-08-17 20:48 UTC]
Alexander PakAdded source files to proposal
[2006-08-18 05:07 UTC]
Alexander PakCompleted some TODO items, uploaded PEAR installable package
[2006-08-20 22:58 UTC]