Forum


Replies: 2   Views: 1476
Addimage - no bottom border
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 visor  · 26-05-2020 - 18:42

Hi,

trying to add images(code below), but does botton border is not showing when openinh generated document. If i open generated document, and rescale image - bottom border appears. 

$options = array(
                            'src' => $tmpfname,
                            'imageAlign' => 'center',                                                
                            'scaling' => $x_scale,
                            'spacingTop' => 10,
                            'spacingBottom' => 10,
                            'spacingLeft' => 0,
                            'spacingRight' => 20,
                            'textWrap' => 0,
                            'borderStyle' => 'solid',
                            'borderWidth' => 1,
                            'borderColor' => '0000CD',
                            'dpi' => 75,
                        );

                        $docx->addImage($options);