Answer the question
In order to leave comments, you need to log in
How to add space to docx document using PhpWord?
Spaces between words are added, but not added at the end.
I'm trying to do this:
$document->setValue('object', $_POST['object'] . ', ' . ' ');
 
, and in this case, when trying to open docx, an error message appears and the document does not open.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question