Forum


Replies: 3   Views: 4570
Width and height properties
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 nsilberman  · 14-11-2012 - 05:12

Hi

I don't understand why in this code, phpdocx_pro doesn't recognize the width and the height properties of the table, or the rows or the cells or the image. On the word document, I want to use 100% of the page width. As it isn't understood by phpdocx, the image is also resized to 52% of its original size (because of the dpi conversion I think)

[code]
$return_txt = "<table style="font-family: Arial; font-size: 10pt;width:700px;">";
$return_txt .= "<tr><td style="width:200px;"><p>My question is not so simple</p></td>";
$return_txt .= "<td style="width:500px;"><img style="width:'500px';height:'400px';" src='$fileName' /></td></tr>";
$return_txt .= "</table>";
[/code]

Did I write something wrong ?

Thanks