note 29037 added to function.pdf-rotate

From: Date: Fri, 31 Jan 2003 00:17:40 +0000
Subject: note 29037 added to function.pdf-rotate
Groups: php.notes 
Request: Send a blank email to php-notes+get-43166@lists.php.net to get a copy of this message
Thanks for your help, this is a clean working example ... <?php $pdf = pdf_new(); pdf_open_file($pdf); pdf_set_info($pdf,"Creator","images.php"); pdf_set_info($pdf,"Title","Horizontal and Vertical Example"); // Width of 612, and length of 792 make US Letter Size // Dimensions are reversed for Landscape Mode pdf_begin_page($pdf,792,612); pdf_set_font($pdf, "Helvetica-Oblique", 18, "host"); pdf_show_xy($pdf, "This is horizontal text",50, 300); pdf_rotate($pdf, 90); /* rotate coordinates */ pdf_show_xy($pdf,"vertical text",300, -400); pdf_rotate($pdf, -90); /* rotate coordinates */; pdf_show_xy($pdf, "This is horizontal text",50, 400); pdf_end_page($pdf); pdf_close($pdf); $buf = pdf_get_buffer($pdf); $len = strlen($buf); Header("Content-type: application/pdf"); Header("Content-Length: $len"); Header("Content-Disposition: inline; filename=images.pdf"); echo $buf; pdf_delete($pdf); ?> -- http://www.php.net/manual/en/function.pdf-rotate.php http://master.php.net/manage/user-notes.php?action=edit+29037 http://master.php.net/manage/user-notes.php?action=delete+29037 http://master.php.net/manage/user-notes.php?action=reject+29037

« previous php.notes (#43166) next »