Document: ezcDocumentPdfDefaultTableColumnWidthCalculator
[ ]
[ Conversion ] [ Styles ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDocumentPdfDefaultTableColumnWidthCalculator
|
Table column width calculator [
source]
Default implementation for a table column width calculator, which is responsible to estimate / guess / calculate sensible column width for a docbook table definition.
Introspects the contents of a table and guesses based on included media and number of words in a cell what a reasonable column width might be.
Since this implementation is mostly based on the count and length of words in one column, it might return unreasonably small column sizes for single columns. This might lead to columns, where not even a single characters fits in, which may cause problems while rendering.
Parents
ezcDocumentPdfTableColumnWidthCalculator
|
--ezcDocumentPdfDefaultTableColumnWidthCalculator
Method Summary
Inherited Methods
From
ezcDocumentPdfTableColumnWidthCalculator :
Methods
estimateWidths
array estimateWidths(
$table )
Estimate column widths
Should return an array with the column widths given as float numbers between 0 and 1, which all add together to 1.
Parameters
| Name |
Type |
Description |
$table |
DOMElement |
|
Redefinition of
Last updated: Tue, 23 Mar 2010