Example #1
0
$style4_4->setTextAlign('justify');
// Bold [bold, normal]
$style5 = new odsStyleTableCell();
$style5->setFontWeight('bold');
// Italic [italic, normal]
$style6 = new odsStyleTableCell();
$style6->setFontStyle('italic');
// Underline [font-color, #000000, null]
$style7 = new odsStyleTableCell();
$style7->setUnderline("font-color");
// Font size
$style8 = new odsStyleTableCell();
$style8->setFontSize("18pt");
// Font Face
$TimesNewRoman = new odsFontFace('Times New Roman');
$ods->addFontFaces($TimesNewRoman);
$style9 = new odsStyleTableCell();
$style9->setFontFace($TimesNewRoman);
// Font Face
$Webdings = new odsFontFace('Webdings');
$ods->addFontFaces($Webdings);
$style10 = new odsStyleTableCell();
$style10->setFontFace($Webdings);
$table = new odsTable('odsStyleTableCell');
$table->addRow($row = new odsTableRow());
$row->addCell(new odsTableCellString("Red text", $style1));
$table->addRow($row = new odsTableRow());
$row->addCell(new odsTableCellString("Green background", $style2));
$table->addRow($row = new odsTableRow());
$row->addCell(new odsTableCellString("Blue border", $style3));
$table->addRow($row = new odsTableRow());