$phpWord = new \PhpOffice\PhpWord\PhpWord();
$section = $phpWord->addSection();
$fontStyle = array('name' => 'Times New Roman', 'size' => 12);
$paragraphStyle = array('indentation' => ['firstLine' => 400]);
$section->addText(
'This is the first paragraph with a first line indent.',
$fontStyle,
$paragraphStyle
);
Я использую PHPWord версии 1.4. Он хорошо работает с подвешиванием и firstLineChars, но не с firstLine.
$section->addText( 'This is the first paragraph with a first line indent.', $fontStyle, $paragraphStyle ); [/code] Я использую PHPWord версии 1.4. Он хорошо работает с подвешиванием и firstLineChars, но не с firstLine.