You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.8 KiB
36 lines
1.8 KiB
<?php
|
|
|
|
namespace Prometeo\CommandsBundle\ManualTraits;
|
|
|
|
use PhpOffice\PhpWord\Element\Footer;
|
|
use PhpOffice\PhpWord\SimpleType\Jc;
|
|
use PhpOffice\PhpWord\SimpleType\JcTable;
|
|
|
|
trait PortadaTrait
|
|
{
|
|
public function createPortada(&$section, &$phpword){
|
|
$section->addImage(__DIR__.'/../Resources/images/headerportada.png', array('width'=>500, 'alignment' => Jc::CENTER));
|
|
$section->addImage(__DIR__.'/../Resources/images/portada.png', array('width'=>500, 'alignment' => Jc::CENTER));
|
|
|
|
$tableStyle = array(
|
|
'borderColor' => '9e009b',
|
|
'borderSize' => 15,
|
|
'cellMargin' => 150,
|
|
'unit' => \PhpOffice\PhpWord\SimpleType\TblWidth::PERCENT,
|
|
'width' => 100 * 50,
|
|
'alignment'=>JcTable::END
|
|
);
|
|
$phpword->addTableStyle('PortadaTable', $tableStyle);
|
|
$table = $section->addTable('PortadaTable');
|
|
$table->addRow();
|
|
$table->addCell(10000)->addText('MANUAL DE USUARIO',$this->fonts['portada'], array('alignment' => Jc::END));
|
|
$section->addText('<w:br/><w:br/><w:br/><w:br/><w:br/>');
|
|
$section->addText('<w:br/><w:br/><w:br/><w:br/>');
|
|
|
|
$section->addImage(__DIR__.'/../Resources/images/logo.png', array('width'=>200, 'alignment' => Jc::CENTER));
|
|
$section->addText('PROMETEO INNOVATIONS S.L. – CIF B74.197.708', $this->fonts['footerportada'],[ 'align' => Jc::CENTER ]);
|
|
$section->addText('c/Ada Byron 107 – Parque Científico y Tecnológico – 33203 Gijón, Asturias. España', $this->fonts['footerportada'],[ 'align' => Jc::CENTER ]);
|
|
$section->addText('Tel :: +34 985 09 88 86 - 689 90 05 05 - mail :: prometeo@prometeoinnova.com', $this->fonts['footerportada'],[ 'align' => Jc::CENTER ]);
|
|
$section->addPageBreak();
|
|
}
|
|
}
|