Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
Hello,
The current version of phpdocx doesn't allow to do that dinamically changes with templates. The addSection method allows to do that but only creating documents from scratch.
Maybe you could do it using the MultiMerge class. This is working with documents and merge them to get the derised output.
About your error, not all methods allow to be used with WordFragments.
Anyway we'll consider adding it or a similar approach.
Regards.