如何在我的文档中添加行号?
我添加了这个;
$objWriter->startElement('w:lnNumTyp');
$objWriter->writeAttribute('w:start', '5');
$objWriter->writeAttribute('w:restart', '1');
$objWriter->endElement();
PhpWord\Writer\Word2007\Document.php
紧接着我的剧本;
$objWriter->startElement('w:sectPr');
我哪里错了?