You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a word document designed with table cells and mentioned tags inside the cells. Then using template processor, I'm trying to replace the tags to images. Due to some unknown cell formatting, the image is not fitting into the table cell.
Table cells with unknown format:
Tag replaced with image output:
Is there a way to clear the table cells unknown formatting before replacing the images?
Expected behavior
It works if we manually clear the formatting in the word document.
Describe the bug and add attachments
I have a word document designed with table cells and mentioned tags inside the cells. Then using template processor, I'm trying to replace the tags to images. Due to some unknown cell formatting, the image is not fitting into the table cell.
Table cells with unknown format:

Tag replaced with image output:

Is there a way to clear the table cells unknown formatting before replacing the images?
Expected behavior
It works if we manually clear the formatting in the word document.

Steps to reproduce
$templateProcessor->setImageValue('UserLogo', array('path' => 'path/to/logo.png', 'width' => 100, 'height' => 100, 'ratio' => false));
PHPWord version(s) where the bug happened
master
PHP version(s) where the bug happened
master
Priority
The text was updated successfully, but these errors were encountered: