HTML Extended: <phpdocx_image> tag
- <a>
- <b>, <strong>
- <br>
- <caption>, <figcaption>
- <div>
- <dl>, <dt>, <dd>
- <h1>, <h2>, <h3>, <h4>, <h5>, <h6>
- <hr>
- <i>, <em>, <cite>, <var>
- <input>
- <img>
- <mark>
- <p>, <address>, <blockquote>
- <pre>
- <s>
- <select>, <option>
- <small>
- <span>
- <sub>
- <sup>
- <table>, <tr>, <td>, <th>
- <textarea>
- <u>, <ins>, <del>
- <ul>, <ol>, <li>
- <math>
- <meta>
- <phpdocx_bookmark>
- <phpdocx_break>
- <phpdocx_comment>
- <phpdocx_crossreference>
- <phpdocx_dateandhour>
- <phpdocx_endnote>
- <phpdocx_footer>
- <phpdocx_footnote>
- <phpdocx_formelement>
- <phpdocx_header>
- <phpdocx_heading>
- <phpdocx_image>
- <phpdocx_link>
- <phpdocx_mathequation>
- <phpdocx_mergefield>
- <phpdocx_modifypagelayout>
- <phpdocx_ole>
- <phpdocx_onlinevideo>
- <phpdocx_pagenumber>
- <phpdocx_section>
- <phpdocx_shape>
- <phpdocx_simplefield>
- <phpdocx_structureddocumenttag>
- <phpdocx_tablecontents>
- <phpdocx_tablefigures>
- <phpdocx_text>
- <phpdocx_textbox>
- <phpdocx_wordfragment>
- <phpdocx_wordml>
- <svg>
- <title>
<phpdocx_image> tag
![](/img/preview/methods_check.png)
![](/img/preview/methods_X.png)
Inserts an image.
HTML Extended (Premium licenses)
Attribute | Description |
---|---|
data-src | Path to the image or stream that you want to insert into the Word document. If a stream is added use with the streamMode option. |
data-borderColor | hexadecimal color: FF0000. |
data-borderStyle | Possible values are:
|
data-borderWidth | Given in emus (1cm = 360000 emus). |
data-dpi | Dots per inch. |
data-float | (left, right, center) floating image. It only applies if textWrap is not inline (default value). |
data-height | Image height in pixels. |
data-horizontalOffset | Given in emus (1cm = 360000 emus). Only applies if the image is not floating. |
data-hyperlink | Image link. |
data-imageAlign | Image alignment: right, center... |
data-mime | Forces a mime (image/jpg, image/jpeg, image/png, image/gif, image/bmp, image/webp). |
data-relativeToHorizontal | margin (default), page, column, character, leftMargin, rightMargin, insideMargin, outsideMargin. Not compatible with inline text wrapping. |
data-relativeToVertical | margin, page, line (default), paragraph, topMargin, bottomMargin, insideMargin, outsideMargin. Not compatible with inline text wrapping. |
data-scaling | % of size: 50, 100. |
data-spacingTop | Spacing top in pixels. |
data-spacingBottom | Spacing bottom in pixels. |
data-spacingLeft | Spacing left in pixels. |
data-spacingRight | Spacing right in pixels. |
data-streamMode | If true, uses src as stream. PHP 5.4 or greater needed to autodetect the mime type; otherwise set it using mime option. Default is false. |
data-target | document (default value), defaultHeader, firstHeader, evenHeader, defaultFooter, firstFooter, evenFooter, comment, endnote or footnote. |
data-textWrap | Text wrap:
|
data-verticalAlign | top, center, bottom. To be used with relativeFromVertical. |
data-verticalOffset | Given in emus (1cm = 360000 emus). |
data-width | Image width in pixels. |