// title for advanced grid line output $pdf->ezText("\n<b>GRIDLINE options</b>", 12); $pdf->ezText("<b>using 'gridline' option - available in version >= 0.12-rc11</b>", 10); $j = 0; for ($i = EZ_GRIDLINE_ALL; $i >= 0; $i--) { if (!($j % 5) && $j != 0) { $pdf->ezNewPage(); } $constName = ""; if ($m = array_search($i, $userConstants)) { $constName = $m; } $title = sprintf('Bitmask: %05b | Integer: %d %s', $i, $i, $constName); $pdf->ezText("\n" . $title . "\n"); $pdf->ezTable($data, $cols, '', array('showHeadings' => 1, 'shaded' => 1, 'gridlines' => $i, 'cols' => $coloptions, 'innerLineThickness' => 0.5, 'outerLineThickness' => 3)); $j++; } $pdf->ezText("\n<b>SHADING options</b>", 12); $pdf->ezText("\nColumn shading\n", 10); $pdf->ezTable($data, array('type' => '', 'name' => ''), '', array('showHeadings' => 0, 'showBgCol' => 1, 'width' => 400, 'cols' => array('name' => array('bgcolor' => array(0.2, 0.2, 0.4)), 'type' => array('bgcolor' => array(0.4, 0.6, 0.6))))); $pdf->ezText("\nHeader shading <b>since 0.12-rc9</b>\n"); $pdf->ezTable($data, $cols, '', array('shadeHeadingCol' => array(0.4, 0.6, 0.6), 'width' => 400)); $pdf->ezText("\nColored columns and a header\n"); $pdf->ezTable($data, $cols, '', array('showHeadings' => 1, 'showBgCol' => 1, 'width' => 400, 'shadeHeadingCol' => array(0.6, 0.6, 0.5), 'cols' => array('name' => array('bgcolor' => array(0.9, 0.9, 0.7)), 'type' => array('bgcolor' => array(0.6, 0.4, 0.2))))); $pdf->ezText("\nJustified table and columns and row shading\n"); $pdf->ezTable($data, $cols, '', array('width' => 300, 'shaded' => 2, 'shadeCol' => array(0.9, 0.9, 0.7), 'shadeCol2' => array(0.6, 0.4, 0.2), 'shadeHeadingCol' => array(0.6, 0.6, 0.5), 'cols' => array('type' => array('justification' => 'right'), 'name' => array('width' => 100)))); if (isset($_GET['d']) && $_GET['d']) { echo $pdf->ezOutput(TRUE); } else { $pdf->ezStream(); }