Forum


Replies: 3   Views: 2972
Captions 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 Tiago Scalco de Mello  · 11-03-2017 - 18:37

In Word you can right-click a table or an image and insert a caption for it which provides a short title or description and can be placed at top or bottom.
This way you can also insert a list of all tables or images in the document.

 

Unable to Insert list of illustration/table after using add image caption?

Posted by admin  · 12-03-2017 - 08:30

Hello,

UPDATE: phpdocx 10 added a caption option in addTable.

The method addImage includes the option 'caption':

http://www.phpdocx.com/api-documentation/word-content/insert-image-Word-document-with-PHP

The method addTable doesn't include it, but you can use any template to generate the DOCX replacing tables, images, caption values, adding new values...

We recommend you to read the documentation available on:

http://www.phpdocx.com/documentation

Regards.

Posted by Tiago Scalco de Mello  · 19-03-2017 - 12:59

 

How do I add 'caption' to an image exported by HTML?