调整XLSX前置服务的文本处理逻辑
- 移除了对'subtitle'字段的截断,现在将完整显示 - 在所有店铺信息后添加了分页符,优化了多页文档的布局
This commit is contained in:
parent
9d0f09fe66
commit
69b4a8cafe
@ -30,9 +30,11 @@ class Beforehand
|
||||
$textRun =$section->addTextRun();
|
||||
|
||||
$textRun->addText($v['system_store'], $fontStyle);
|
||||
$textRun->addText(' '.mb_substr($v['subtitle'], 0, 8, 'UTF-8'), $fontStyle1);
|
||||
$textRun->addText(' '.$v['subtitle'], $fontStyle1);
|
||||
$section->addText(mb_substr( $v['store_name'], 0, 16, 'UTF-8'), $fontStyle2);
|
||||
$section->addText($v['address'], $fontStyle3);
|
||||
$section->addPageBreak();
|
||||
|
||||
}
|
||||
|
||||
$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');
|
||||
|
Loading…
x
Reference in New Issue
Block a user