From b34eaf592792891d893ac06803b93c0d42b667b5 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Thu, 25 Apr 2019 17:17:55 +0530 Subject: Increase the size of reference field, implement certificate --- pdf/fpdf/doc/image.htm | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100755 pdf/fpdf/doc/image.htm (limited to 'pdf/fpdf/doc/image.htm') diff --git a/pdf/fpdf/doc/image.htm b/pdf/fpdf/doc/image.htm new file mode 100755 index 0000000..66a35ee --- /dev/null +++ b/pdf/fpdf/doc/image.htm @@ -0,0 +1,99 @@ + + + + +Image + + + +

Image

+Image(string file [, float x [, float y [, float w [, float h [, string type [, mixed link]]]]]]) +

Description

+Puts an image. The size it will take on the page can be specified in different ways: + +Supported formats are JPEG, PNG and GIF. The GD extension is required for GIF. +
+
+For JPEGs, all flavors are allowed: + +For PNGs, are allowed: + +For GIFs: in case of an animated GIF, only the first frame is displayed.
+
+Transparency is supported.
+
+The format can be specified explicitly or inferred from the file extension.
+
+It is possible to put a link on the image.
+
+Remark: if an image is used several times, only one copy is embedded in the file. +

Parameters

+
+
file
+
+Path or URL of the image. +
+
x
+
+Abscissa of the upper-left corner. If not specified or equal to null, the current abscissa +is used. +
+
y
+
+Ordinate of the upper-left corner. If not specified or equal to null, the current ordinate +is used; moreover, a page break is triggered first if necessary (in case automatic page breaking is enabled) +and, after the call, the current ordinate is moved to the bottom of the image. +
+
w
+
+Width of the image in the page. There are three cases: + +
+
h
+
+Height of the image in the page. There are three cases: + +
+
type
+
+Image format. Possible values are (case insensitive): JPG, JPEG, PNG and GIF. +If not specified, the type is inferred from the file extension. +
+
link
+
+URL or identifier returned by AddLink(). +
+
+

Example

+
+
// Insert a logo in the top-left corner at 300 dpi
+$pdf->Image('logo.png',10,10,-300);
+// Insert a dynamic image from a URL
+$pdf->Image('http://chart.googleapis.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World',60,30,90,0,'PNG');
+
+

See also

+AddLink(). +
+
Index
+ + -- cgit