Open
Description
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
- I want to crowdfund the bug fix (with @algora-io) and fund a community developer.
- I want to pay the bug fix and fund a maintainer for that. (Contact @Progi1984)