|
|
|
[
Permlink
| « Hide
]
Bill Karwin - 12/Apr/07 04:06 PM
Assign to Alexander.
Depends on document representation model, which should be designed before.
Postponed to post-1.0 period I have recently created a class that emulates the FPDF cells. Currently, it is very basic but allows for creating of a cell, positioning the cell, and aligning text inside of the cell. I have attached a diff that creates the functionality. A small example is the following:
//create and attach the cell to the first page, and center in the X and Y direction $cell=new Zend_Pdf_Cell($pdf->pages[0],Zend_Pdf_Cell::POSITION_CENTER_X | Zend_Pdf_Cell::POSITION_CENTER_Y); //align the text in the center $cell->addText("The quick brown fox jumped over the lazy dog.",Zend_Pdf_Cell::ALIGN_CENTER); $cell->newLine(); //write the cell to the PDF document $cell->write(); Patch for a cell class that allows simple cell creation and text alignment.
I have updated the Cell.php file and fixed a few things. Added borders and word wrapping.
I have just finished up a proposal using the Zend_Pdf_Cell, any comments are welcome. The proposal may be viewed at at http://framework.zend.com/wiki/display/ZFPROP/Zend_Pdf_Cell+-+Logan+Buesching
Resetting 'fix version priority' and 'fix version' to be re-evaluated for next release.
Unassigning Zend_Pdf issues currently assigned to me pending decision on ZF 2.0 release timeframe and potential contribution of comprehensive changeset.
Alex, please take a look at this and resolve as necessary.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||