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
Here is my code in which I'm trying to add a title using the setComplexBlock function
$templateProcessor = new TemplateProcessor($documentModelPath); $title = new Title("Title 1", 1); $title->setPhpWord(new PhpWord()); $templateProcessor->setComplexBlock("title", $title); $templateProcessor->saveAs($outputFile);
With my word templace containing a simple page
Result is the text is replaced but as Normal text not title.
Also I needed to add the line $title->setPhpWord(new PhpWord()) to avoir the following error : Call to a member function addBookmark() on null
$title->setPhpWord(new PhpWord())
Call to a member function addBookmark() on null
If I missused the library or if there is any workaroung please let me know. Thank you !
I would expect the title to match the required depth and style and to be a real Word title that could be used is summary table, etc.
1.3.0
8.2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug and add attachments
Here is my code in which I'm trying to add a title using the setComplexBlock function
With my word templace containing a simple page
Result is the text is replaced but as Normal text not title.
Also I needed to add the line
$title->setPhpWord(new PhpWord())
to avoir the following error :Call to a member function addBookmark() on null
If I missused the library or if there is any workaroung please let me know.
Thank you !
Expected behavior
I would expect the title to match the required depth and style and to be a real Word title that could be used is summary table, etc.
Steps to reproduce
PHPWord version(s) where the bug happened
1.3.0
PHP version(s) where the bug happened
8.2
Priority
The text was updated successfully, but these errors were encountered: