$objPHPPowerPoint = new PhpPresentation();
$objPHPPowerPoint->getDocumentProperties()->setCreator('PHPOffice')
->setLastModifiedBy('PHPPresentation Team')
->setTitle('Sample 06 Title')
->setSubject('Sample 06 Subject')
->setDescription('Sample 06 Description')
->setKeywords('office 2007 openxml libreoffice odt php')
->setCategory('Sample Category');
$objPHPPowerPoint->createSlide();
$currentSlide = $objPHPPowerPoint->getActiveSlide();
$tableFiledArr = array(
['车型/项目', 1],
['媒体', 2],
['上线时间', 2],
);
$titleField1 = $tableFiledArr;
// 表格
$shape = $currentSlide->createTableShape(5);
$shape->setHeight(400);
$shape->setWidth(900);
$shape->setOffsetX(20);
$shape->setOffsetY(180);
$row = $shape->createRow();
$row->setHeight(60);
$row->getFill()->setFillType(Fill::FILL_GRADIENT_LINEAR)
->setRotation(9)
->setStartColor(new Color('FFc00000'))
phpoffice 系列之 PhpPresentation 对表格指定列重复字段进行格并
最新推荐文章于 2024-03-18 09:34:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)