Update documentation
This commit is contained in:
parent
841157e442
commit
3b020f660c
|
|
@ -239,17 +239,15 @@ See ``Sample_09_Tables.php`` for more code sample.
|
||||||
Images
|
Images
|
||||||
------
|
------
|
||||||
|
|
||||||
To add an image, use the ``addImage`` or ``addMemoryImage`` method. The
|
To add an image, use the ``addImage`` method to sections, headers, footers,
|
||||||
first one is used when your source is stored locally, the later is used
|
textruns, or table cells.
|
||||||
when your source is a remote URL, either another script that create
|
|
||||||
image or an image on the internet.
|
|
||||||
|
|
||||||
Syntax:
|
|
||||||
|
|
||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
$section->addImage($src, [$style]);
|
$section->addImage($src, [$style]);
|
||||||
$section->addMemoryImage($link, [$style]);
|
|
||||||
|
- `source` String path to a local image or URL of a remote image
|
||||||
|
- `styles` Array fo styles for the image. See below.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
|
|
@ -266,9 +264,10 @@ Examples:
|
||||||
'wrappingStyle' => 'behind'
|
'wrappingStyle' => 'behind'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
$footer = $section->createFooter();
|
||||||
$section->addMemoryImage('http://example.com/image.php');
|
$footer->addImage('http://example.com/image.php');
|
||||||
$section->addMemoryImage('http://php.net/logo.jpg');
|
$textrun = $section->createTextRun();
|
||||||
|
$textrun->addImage('http://php.net/logo.jpg');
|
||||||
|
|
||||||
Image styles
|
Image styles
|
||||||
~~~~~~~~~~~~
|
~~~~~~~~~~~~
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue