<?php // Load library require_once '../ods.php'; // Create Ods object $ods = new ods(); // Red text $style1 = new odsStyleTableCell(); $style1->setColor('#ff0000'); // Green background $style2 = new odsStyleTableCell(); $style2->setBackgroundColor('#00ff00'); // Blue border $style3 = new odsStyleTableCell(); $style3->setBorder('0.01cm solid #0000ff'); // Align start $style4_1 = new odsStyleTableCell(); $style4_1->setTextAlign('start'); // Align center $style4_2 = new odsStyleTableCell(); $style4_2->setTextAlign('center'); // Align end $style4_3 = new odsStyleTableCell(); $style4_3->setTextAlign('end'); // Align justify $style4_4 = new odsStyleTableCell(); $style4_4->setTextAlign('justify'); // Bold [bold, normal] $style5 = new odsStyleTableCell(); $style5->setFontWeight('bold'); // Italic [italic, normal]