Forum


Replies: 7   Views: 1479
How to create heading with formatstyles in embedhtml?
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.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by Robin  · 14-12-2020 - 15:22

$docx->addText('Contents',array('pStyle' => 'Heading1'));

Thank you for your response.

Also with pStyle, it doesn't apply a heading style.