Forum


Replies: 3   Views: 716
Set caption style for tables and images
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 admin  · 03-11-2022 - 06:25

Hello,

The same styleName option is applied in both (SEQ and custom paragraph style [pStyle]). Styles can be applied using custom style options (color, lineSpacing, position...) but there's no option to apply a custom paragraph style to the caption. Using a Premium license, DOCXCustomizer can be used to set a new pStyle, but as you are using an Advanced license you'd need to add support for a new option.

We have sent to your email a small update in the CreateImageCaption class with a new option to apply a custom paragraph style to captions.

Regards.