We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Text.php, buildControlCharacters() constructs array of control characters, but only characters 0 - 19(without 9, 10, 13).
Text.php
buildControlCharacters()
If i create Word2007 file with some other control character, for example 20, generated file is corrupted.
Sample:
$phpWord = new \PhpOffice\PhpWord\PhpWord(); $section = $phpWord->addSection(); $section->addText('control char 27(ESC):' . chr(27)); $objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007'); $objWriter->save('test.docx');
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In
Text.php
,buildControlCharacters()
constructs array of control characters, but only characters 0 - 19(without 9, 10, 13).If i create Word2007 file with some other control character, for example 20, generated file is corrupted.
Sample:
The text was updated successfully, but these errors were encountered: