* and scaling * Here are several example of image placement */ $pdf->image_place($image, 200, 300, $firstpage); $pdf->image_place($image, 300, 300, $firstpage, array('scale' => 10, 'rotation' => 30)); $pdf->image_place($image, 400, 300, $firstpage, array('scale' => 25, 'rotation' => 60)); /* A quick example for creating additional pages * and placing objects on them. */ $secondpage = $pdf->new_page("legal"); $pdf->draw_rectangle(998, 10, 10, 602, $secondpage); $pdf->draw_text(300, 450, "Page #2", $secondpage); $pdf->draw_text(300, 400, "backslashes (\\) cause no problems", $secondpage); /* Circle command is new to 2.1 */ $pdf->draw_circle(150, 200, 50, $secondpage, array('mode' => 'stroke', 'strokecolor' => $pdf->get_color('blue'), 'width' => 5)); $pdf->draw_circle(300, 200, 35, $secondpage, array('mode' => 'fill')); $pdf->draw_circle(450, 200, 50, $secondpage, array('mode' => 'fill+stroke', 'fillcolor' => $pdf->get_color('red'))); /* Uses the absolute page size notation to create * a notecard sized page */ $thirdpage = $pdf->new_page("5x3in"); $pdf->draw_rectangle(198, 18, 18, 342, $thirdpage); $pdf->draw_text(150, 100, "Page #3", $thirdpage); /* Uses the absolute page size notation to create * a 50x30 centimeter page */ $fourthpage = $pdf->new_page("50x30cm"); $pdf->draw_text(150, 100, "Page #4", $fourthpage); /* These headers do a good job of convincing most * browsers that they should launch their pdf viewer