本文整理汇总了PHP中PHPWord::CreateSection方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPWord::CreateSection方法的具体用法?PHP PHPWord::CreateSection怎么用?PHP PHPWord::CreateSection使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPWord
的用法示例。
在下文中一共展示了PHPWord::CreateSection方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PHPWord
$dabadeba = $_POST['dabadeba'];
$misamarti = $_POST['misamarti'];
$mobile = $_POST['mobile'];
$email = $_POST['email'];
$dawesebuleba = $_POST['txt_edu_name'];
$fakulteti = $_POST['txt_edu_faculty'];
$specialoba = $_POST['txt_edu_profession'];
$xarisxi = $_POST['txt_edu_degree'];
$periodii = $_POST['txt_edu_period'];
$enebi = $_POST['txt_lang_name'];
$skills = $_POST['txt_skill_name'];
$organizacia = $_POST['txt_work_name'];
$pozicia = $_POST['txt_work_position'];
$periodi = $_POST['txt_work_period'];
$PHPWord = new PHPWord();
$section = $PHPWord->CreateSection();
$PHPWord->addFontStyle('rStyle', array('bold' => true, 'size' => 16));
$PHPWord->addParagraphStyle('pStyle', array('align' => 'center', 'spaceAfter' => 100));
$section->addText('CV', 'rStyle', 'pStyle');
$section->addTextBreak(2);
$section->addImage($target_file, array('width' => 210, 'height' => 210, 'align' => 'center'));
$section->addTextBreak(2);
$styleTable = array('borderSize' => 6, 'borderColor' => '006699', 'cellMargin' => 80);
$styleCell = array('valign' => 'center');
$styleCellBTLR = array('valign' => 'center', 'textDirection' => PHPWord_Style_Cell::TEXT_DIR_BTLR);
$fontStyle = array('bold' => true, 'align' => 'center');
$PHPWord->addTableStyle('myOwnTableStyle', $styleTable);
$table = $section->addTable('myOwnTableStyle');
if ($name != '') {
$table->addRow(2);
$table->addCell(4000, $styleCell)->addText('Name', $fontStyle);