See: http://www.tcpdf.org/doc/code/classTCPDF.html cIick open MultiCell . I guess that you have to enlarge the height… I havent tried this but I did do some customised pdf work…
For tc_pdf you need to test and try sometimes to get it right…
[SIZE=16px] [TABLE=“class: memname”]
[TR]
[TD]TCPDF::MultiCell[/TD]
[TD]([/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$w,[/TD]
[/TR]
[TR]
[TD=“class: paramkey”] [/TD]
[TD] [/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$h,[/TD]
[/TR]
[TR]
[TD=“class: paramkey”] [/TD]
[TD] [/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$txt,[/TD]
[/TR]
[TR]
[TD=“class: paramkey”] [/TD]
[TD] [/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$border = 0,[/TD]
[/TR]
[TR]
[TD=“class: paramkey”] [/TD]
[TD] [/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$align = ‘J’,[/TD]
[/TR]
[TR]
[TD=“class: paramkey”] [/TD]
[TD] [/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$fill = false,[/TD]
[/TR]
[TR]
[TD=“class: paramkey”] [/TD]
[TD] [/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$ln = 1,[/TD]
[/TR]
[TR]
[TD=“class: paramkey”] [/TD]
[TD] [/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$x = ‘’,[/TD]
[/TR]
[TR]
[TD=“class: paramkey”] [/TD]
[TD] [/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$y = ‘’,[/TD]
[/TR]
[TR]
[TD=“class: paramkey”] [/TD]
[TD] [/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$reseth = true,[/TD]
[/TR]
[TR]
[TD=“class: paramkey”] [/TD]
[TD] [/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$stretch = 0,[/TD]
[/TR]
[TR]
[TD=“class: paramkey”] [/TD]
[TD] [/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$ishtml = false,[/TD]
[/TR]
[TR]
[TD=“class: paramkey”] [/TD]
[TD] [/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$autopadding = true,[/TD]
[/TR]
[TR]
[TD=“class: paramkey”] [/TD]
[TD] [/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$maxh = 0,[/TD]
[/TR]
[TR]
[TD=“class: paramkey”] [/TD]
[TD] [/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$valign = ‘T’,[/TD]
[/TR]
[TR]
[TD=“class: paramkey”] [/TD]
[TD] [/TD]
[TD=“class: paramtype”] [/TD]
[TD=“class: paramname”]$fitcell = false [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD])[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[/TABLE]
[/SIZE]
[SIZE=16px] This method allows printing text with line breaks. They can be automatic (as soon as the text reaches the right border of the cell) or explicit (via the
character). As many cells as necessary are output, one below the other.
Text can be aligned, centered or justified. The cell block can be framed and the background painted.
Parameters [TABLE=“class: params”]
[TR]
[TD=“class: paramname”]$w[/TD]
TD Width of cells. If 0, they extend up to the right margin of the page.[/TD]
[/TR]
[TR]
[TD=“class: paramname”]$h[/TD]
TD Cell minimum height. The cell extends automatically if needed.[/TD]
[/TR]
[TR]
[TD=“class: paramname”]$txt[/TD]
TD String to print[/TD]
[/TR]
[TR]
[TD=“class: paramname”]$border[/TD]
TD Indicates if borders must be drawn around the cell. The value can be a number:
- 0: no border (default)
- 1: frame
or a string containing some or all of the following characters (in any order):
- L: left
- T: top
- R: right
- B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))[/TD]
[/TR]
[TR]
[TD="class: paramname"]$align[/TD]
[TD](string) Allows to center or align the text. Possible values are:
- L or empty string: left align
- C: center
- R: right align
- J: justification (default value when $ishtml=false)
[/TD]
[/TR]
[TR]
[TD="class: paramname"]$fill[/TD]
[TD](boolean) Indicates if the cell background must be painted (true) or transparent (false).[/TD]
[/TR]
[TR]
[TD="class: paramname"]$ln[/TD]
[TD](int) Indicates where the current position should go after the call. Possible values are:
- 0: to the right
- 1: to the beginning of the next line [DEFAULT]
- 2: below
[/TD]
[/TR]
[TR]
[TD="class: paramname"]$x[/TD]
[TD](float) x position in user units[/TD]
[/TR]
[TR]
[TD="class: paramname"]$y[/TD]
[TD](float) y position in user units[/TD]
[/TR]
[TR]
[TD="class: paramname"]$reseth[/TD]
[TD](boolean) if true reset the last cell height (default true).[/TD]
[/TR]
[TR]
[TD="class: paramname"]$stretch[/TD]
[TD](int) font stretch mode:
- 0 = disabled
- 1 = horizontal scaling only if text is larger than cell width
- 2 = forced horizontal scaling to fit cell width
- 3 = character spacing only if text is larger than cell width
- 4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.[/TD]
[/TR]
[TR]
[TD="class: paramname"]$ishtml[/TD]
[TD](boolean) INTERNAL USE ONLY ? set to true if $txt is HTML content (default = false). Never set this parameter to true, use instead
writeHTMLCell() or
writeHTML() methods.[/TD]
[/TR]
[TR]
[TD="class: paramname"]$autopadding[/TD]
[TD](boolean) if true, uses internal padding and automatically adjust it to account for line width.[/TD]
[/TR]
[TR]
[TD="class: paramname"]$maxh[/TD]
[TD](float) maximum height. It should be >= $h and less then remaining space to the bottom of the page, or 0 for disable this feature. This feature works only when $ishtml=false.[/TD]
[/TR]
[TR]
[TD="class: paramname"]$valign[/TD]
[TD](string) Vertical alignment of text (requires $maxh = $h > 0). Possible values are:
- T: TOP
- M: middle
- B: bottom
. This feature works only when $ishtml=false and the cell must fit in a single page.[/TD]
[/TR]
[TR]
[TD="class: paramname"]$fitcell[/TD]
[TD](boolean) if true attempt to fit all the text within the cell by reducing the font size (do not work in HTML mode). $maxh must be greater than 0 and equal to $h.[/TD]
[/TR]
[/TABLE]
Returns int Return the number of cells or 1 for html mode. Since 1.3 See Also
SetFont(),
SetDrawColor(),
SetFillColor(),
SetTextColor(),
SetLineWidth(),
Cell(),
Write(),
SetAutoPageBreak() [/SIZE]