Class PDF_MC_Table
The PDF_MC_Table class extends FPDF for creating tables with MultiCells.
The goal of this class is to build a table from MultiCells. As MultiCells go to the next line after being output, the base idea consists in saving the current position, printing the MultiCell and resetting the position to its right. There is a difficulty, however, if the table is too long: page breaks. Before outputting a row, it is necessary to know whether it will cause a break or not. If it does overflow, a manual page break must be done first. To do so, the height of the row must be known in advance; it is the maximum of the heights of the MultiCells it is made up of. To know the height of a MultiCell, the NbLines() method is used: it returns the number of lines a MultiCell will occupy.
- FPDF
- PDF_MC_Table
Direct known subclasses
PDFCategory: PDF
Author: Olivier <olivier@fpdf.org>
Author: Henri Schumacher <henri.hulski@gazeta.pl>
Located at include/classes/fpdf/mc_table.php
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
integer
|
public
array
|
$widths |
|
#
The array of column widths |
public
array|string
|
$aligns |
|
#
The array of column alignments or one alignment for all columns |
public
number
|
$cell_height | 6 |
#
The cell height |
public
boolean
|
$fill | false |
#
True if the table row should be colored |
public
integer
|
$table_page | 1 |
#
The page number |
$AliasNbPages,
$AutoPageBreak,
$ColorFlag,
$CoreFonts,
$CurOrientation,
$CurPageSize,
$CurrentFont,
$DefOrientation,
$DefPageSize,
$DrawColor,
$FillColor,
$FontFamily,
$FontFiles,
$FontSize,
$FontSizePt,
$FontStyle,
$InFooter,
$InHeader,
$LayoutMode,
$LineWidth,
$PDFVersion,
$PageBreakTrigger,
$PageLinks,
$PageSizes,
$StdPageSizes,
$TextColor,
$ZoomMode,
$author,
$bMargin,
$buffer,
$cMargin,
$compress,
$creator,
$diffs,
$fontpath,
$fonts,
$h,
$hPt,
$images,
$k,
$keywords,
$lMargin,
$lasth,
$links,
$n,
$offsets,
$page,
$pages,
$rMargin,
$state,
$subject,
$tMargin,
$title,
$underline,
$w,
$wPt,
$ws,
$x,
$y
|