Forum


Replies: 1   Views: 635
Is it possible to make text strikethrough using "customizewordcontent" function?
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 tjchen  · 21-12-2020 - 07:55

Is it possible to make text strikethrough using  "customizeWordContent" function?

Posted by admin  · 21-12-2020 - 09:10

Hello,

UPDATE: the strykethrough style was included in DOCXCustomizer in phpdocx 12.

The strikethrough style is not one of the supported styles in DOCXCustomizer in the current version of phpdocx. On https://www.phpdocx.com/api-documentation/docxcustomizer/customize-docx-Word-documents-PHP you can read the supported styles by DOCXCustomizer.

We move the request to the dev team to add support to that style with DOCXCustomizer to the next release of phpdocx.

Using the current version of phpdocx, DOCXPath can be used to add new tags to elements. insertWordFragment with a WordFragment generated with addWordML could be used to insert w:strike tags.

Regards.