<ac:macro ac:name="note"><ac:parameter ac:name="title">Under Construction</ac:parameter><ac:rich-text-body>
<p>This proposal is under construction and is not ready for review.</p></ac:rich-text-body></ac:macro>
<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[
<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[
Zend_Rtf module functions as a RTF (Rich Text Format) manipulation engine. It should be able to load existing documents, create new, modify and save modified documents. Thus it can help any PHP-driven application dynamically prepare documents in RTF by modifying existing template or generating document from a scratch. Zend_Rtf module should/must supports the following features:
In a later phase, there could be an engine for PDF to RTF, and vica versa.Zend Framework: Zend_Rtf Component Proposal
Proposed Component Name
Zend_Rtf
Developer Notes
http://framework.zend.com/wiki/display/ZFDEV/Zend_Rtf
Proposers
Andries Seutens
Revision
0.1 - use-cases
0.2 - module overview (wiki revision: 36)Table of Contents
1. Overview
2. References
3. Component Requirements, Constraints, and Acceptance Criteria
4. Dependencies on Other Framework Components
- Zend_Exception
- ...
5. Theory of Operation
todo
6. Milestones / Tasks
- Milestone 1: Proposal
- Milestone 2: Proposal accepted
- Milestone 3: Working release
- Milestone 4: Unit tests
- Milestone 5: Documentation
- Milestone 6: Future enhancements
7. Class Index
- Zend_Rtf
- Zend_Rtf_Document
- Zend_Rtf_Page
- Zend_Rtf_Exception
- ...
- - Zend_Rtf_Style
- Zend_Rtf_Style_Abstract
- Zend_Rtf_Style_Paragraph
- Zend_Rtf_Style_Heading
- Zend_Rtf_Style_Table
- ...
- - Zend_Rtf_Section
- Zend_Rtf_Section_Abstract
- Zend_Rtf_Section_Header
- Zend_Rtf_Section_Footer
- ...
- - Zend_Rtf_Color
- Zend_Rtf_Color_Abstract
- Zend_Rtf_Color_Html
- Zend_Rtf_Color_Rgb
- ...
8. Use Cases
UC-1: creating an RTF document, and setting it's metadata:
UC-2: adding pages:
UC-3: using styles and adding text:
UC-4: creating document header and footer:
UC-5: copying and modifying copied pages:
9. Class Skeletons
todo
]]></ac:plain-text-body></ac:macro>]]></ac:plain-text-body></ac:macro>
4 Comments
comments.show.hideJan 16, 2008
Lars Strojny
<p>The way of handling the properties does not look very Zend'ish. It would be either Zend_Rtf_Document::setProperty($key, $value) or better Zend_Rtf_Document::setTitle(), Zend_Rtf_Document::setSubject() and the like. You could also externalize functionality from Zend_Rtf_Document to a Zend_Rtf_Document_Properties-object. The a call for setting a title would look like $doc->getProperties()->setTitle("foo") which is longer but in an OOP sense pretty correct.</p>
<p>In UC-5 there is a "new new", just a type. Zend_Rtf_Document::setNoFooter() should be disableFooter().</p>
Jan 16, 2008
Andries Seutens
<p>Hi Lars,</p>
<p>Thank you for the feedback. I am currently working with Willie Alberty to line the API up with Zend_Pdf. Zend_Rtf and Zend_Pdf share a lot in common, so their API's should be similar.</p>
<p>I will keep you posted, but I expect the API to change pretty drasticly.</p>
May 14, 2008
Wil Sinclair
<p>Andries, do you still plan to drive this proposal to recommendation? If not, can we move it to the archived section until you can pick it up again?</p>
<p>Thanks.<br />
,Wil</p>
Jun 20, 2008
Wil Sinclair
<p>Moving to Archived section until Andries can start driving this proposal again.</p>
<p>,Wil</p>