note 58421 added to function.ps-new
| From: | coucou747 at wanadoo dot fr | Date: | Thu, 03 Nov 2005 20:13:09 +0000 |
| Subject: | note 58421 added to function.ps-new | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-98035@lists.php.net to get a copy of this message | ||
J'utilises ce genre de script sur mon site web pour faire une version post script ( http://coucou747.hopto.org )
<?php
$name='TEST';
$ymax=640;
$dimx=480;
touch($name.'.ps');
$ps = ps_new();
ps_open_file( $ps, $name.'.ps' );
ps_set_info( $ps, 'Author', 'coucou747' );
ps_set_info( $ps, 'Title', 'TEST' );
ps_set_info($ps, 'Keyword','Des choses interessantes');
ps_set_parameter($ps, 'warning', 'false');
ps_set_parameter($ps, 'parbreak','true');
ps_set_info($ps, 'Creator', 'vi.php');
ps_set_info($ps, 'BoundingBox', '0 0 '.$dimx.' '.$ymax);
ps_set_info($ps, 'Orientation', 'Portrait');
ps_begin_page( $ps, $dimx, $ymax );
$font = ps_findfont( $ps, 'Dustismo', NULL );
ps_setfont( $ps, $font, 10 );
$sizex=ps_stringwidth($ps, 'Hello');
ps_show_xy($ps, 'Hello', ($dimx-$sizex)/2, $ymax-30);
$ps_image=ps_open_image_file($ps, 'jpeg', '../logo.jpg', NULL, 0);
ps_place_image($ps, $ps_image, 10,100,0.5);
ps_end_page( $ps );
ps_close( $ps );
?>
----
Manual Page -- http://www.php.net/manual/en/function.ps-new.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58421
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58421&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58421&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58421&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58421&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58421&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58421&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58421&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58421&report=yes
Search -- http://master.php.net/manage/user-notes.php