TCPDF::ImageSVG( $file,  $x = '',  $y = '',  $w,  $h,  $link = '',  $align = '',  $palign = '',  $border,  $fitonpage = false )

Embedd a Scalable Vector Graphics (SVG) image.


Description Description

NOTE: SVG standard is not yet fully implemented, use the setRasterizeVectorImages() method to enable/disable rasterization of vector images using ImageMagick library.


Parameters Parameters

$file

(Required) (string) Name of the SVG file or a '@' character followed by the SVG data string.

$x

(Optional) (float) Abscissa of the upper-left corner.

Default value: ''

$y

(Optional) (float) Ordinate of the upper-left corner.

Default value: ''

$w

(Required) (float) Width of the image in the page. If not specified or equal to zero, it is automatically calculated.

$h

(Required) (float) Height of the image in the page. If not specified or equal to zero, it is automatically calculated.

$link

(Optional) (mixed) URL or identifier returned by AddLink().

Default value: ''

$align

(Optional) (string) Indicates the alignment of the pointer next to image insertion relative to image height. The value can be:<ul><li>T: top-right for LTR or top-left for RTL</li><li>M: middle-right for LTR or middle-left for RTL</li><li>B: bottom-right for LTR or bottom-left for RTL</li><li>N: next line</li></ul> If the alignment is an empty string, then the pointer will be restored on the starting SVG position.

Default value: ''

$palign

(Optional) (string) Allows to center or align the image on the current line. Possible values are:<ul><li>L : left align</li><li>C : center</li><li>R : right align</li><li>'' : empty string : left for LTR or right for RTL</li></ul>

Default value: ''

$border

(Required) (mixed) Indicates if borders must be drawn around the cell. The value can be a number:<ul><li>0: no border (default)</li><li>1: frame</li></ul> or a string containing some or all of the following characters (in any order):<ul><li>L: left</li><li>T: top</li><li>R: right</li><li>B: bottom</li></ul> or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))

$fitonpage

(Optional) (boolean) if true the image is resized to not exceed page dimensions.

Default value: false


Top ↑

Source Source

File: includes/lib/tcpdf/tcpdf.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.000 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.