删除空格在phpWord中的水平线之后

时间:2016-03-02 11:53:45

标签: php phpword

这是我在使用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

1 个答案:

答案 0 :(得分:-1)

请浏览https://media.readthedocs.org/pdf/phpword/latest/phpword.pdf

这可能会对你有帮助。