update documentation
This commit is contained in:
parent
51c6b5fc38
commit
204f0c32ec
|
|
@ -232,7 +232,7 @@ To add an image, use the ``addImage`` method to sections, headers, footers, text
|
||||||
|
|
||||||
$section->addImage($src, [$style]);
|
$section->addImage($src, [$style]);
|
||||||
|
|
||||||
- ``$src``. String path to a local image or URL of a remote image.
|
- ``$src``. String path to a local image, URL of a remote image or the image data, as a string.
|
||||||
- ``$style``. See :ref:`image-style`.
|
- ``$style``. See :ref:`image-style`.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
@ -254,6 +254,8 @@ Examples:
|
||||||
$footer->addImage('http://example.com/image.php');
|
$footer->addImage('http://example.com/image.php');
|
||||||
$textrun = $section->addTextRun();
|
$textrun = $section->addTextRun();
|
||||||
$textrun->addImage('http://php.net/logo.jpg');
|
$textrun->addImage('http://php.net/logo.jpg');
|
||||||
|
$source = file_get_contents('/path/to/my/images/earth.jpg');
|
||||||
|
$textrun->addImage($source);
|
||||||
|
|
||||||
Watermarks
|
Watermarks
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue