gpt4 book ai didi

php - 删除phpWord中横线后的空格

转载 作者:行者123 更新时间:2023-12-05 08:09:31 25 4
gpt4 key购买 nike

这是我在使用 phpWord 时遇到的一个问题:我添加了 2 条水平线,然后在它们之间添加了一些文本。但它总是在文本前多加一行。你能告诉我如何删除那个空格行吗:代码块:

$aLineSty = array('weight'=> 1, 'width' => 720, 'height'=> 0, 'color'=> '000');
$oSection->addLine($aLineSty);
$_sTextInsideLine = 'bla bladshfsdfh dfhdsf sfhsf sfhs bla bla......';
$oSection->addText($_sTextInsideLine, array('size'=> 9.5), $aBodyPara);
$oSection->addLine($aLineSty);

它看起来像: enter image description here

我已经在 Github 上发布了这个问题,但没有得到任何回复: Remove space After the horizontal line #712

最佳答案

关于php - 删除phpWord中横线后的空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35746471/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com