note 71140 added to function.pdf-fit-image

From: Date: Mon, 13 Nov 2006 20:41:02 +0000
Subject: note 71140 added to function.pdf-fit-image
Groups: php.notes 
Request: Send a blank email to php-notes+get-119684@lists.php.net to get a copy of this message
Hello php cracks First of all, the reference point of the image is its left, bottom corner. Furthermore, I just thought it would be nice to know some of the most used options that can be passed using the fifth parameter "string optlist". Scaling the image (e.g. by a factor of 0.5) <?php PDF_fit_image ( $pdf, $img, $x, $y, "scale 0.5" ) ?> Rotating the image (e.g. by an angle of 45 degrees) <?php PDF_fit_image ( $pdf, $img, $x, $y, "rotate 45" ) ?> Note: The reference point rotates with the image! Fitting the image into a virtual box <?php PDF_fit_image ( $pdf, $img, $x, $y, "boxsize {200 100} fitmethod meet" ) ?> Note: The box width and height (in Adobe points) would be given in the curly braces. Using the fitmethod "meet", the image would be ratio-scaled to be completely visible. Other methods are "clip" and "slice". Multiple options can be used at the same time by simply concatenating them using a space. By the way, most pdf functions work exactly the same as the PDFlib functions. So just risk a look into the PFLlib documentations (use a search engine). Hope this helped! Best regards - Adrian ---- Server IP: 194.153.94.10 Probable Submitter: 84.227.139.127 ---- Manual Page -- http://www.php.net/manual/en/function.pdf-fit-image.php Edit -- https://master.php.net/note/edit/71140 Del: integrated -- https://master.php.net/note/delete/71140/integrated Del: useless -- https://master.php.net/note/delete/71140/useless Del: bad code -- https://master.php.net/note/delete/71140/bad+code Del: spam -- https://master.php.net/note/delete/71140/spam Del: non-english -- https://master.php.net/note/delete/71140/non-english Del: in docs -- https://master.php.net/note/delete/71140/in+docs Del: other reasons-- https://master.php.net/note/delete/71140 Reject -- https://master.php.net/note/reject/71140 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119684) next »