Abscissa Tech Home Design Coding Media Server
Tutorials Courses Forums Resources
  Home
 
  Member Options
    Sign Up
  Log In
 
  Tools
    PowerHTML
    Teacher's Lounge
  References
  HTML
  PHP
  CSS
 
  Search
 
 
    Legalese
    Contact Us
    Privacy Policy
    About Abscissa

PDF_scale

PDF_scale -- Sets scaling

Description

void pdf_scale(int pdf document, double x-scale, double y-scale);

The PDF_scale() function sets the scaling factor in both directions. The following example scales x and y direction by 72. The following line will therefore be drawn one inch in both directions.

Example 1. Scaling

  1 
  2 <?php PDF_scale($pdf, 72.0, 72.0);
  3 PDF_lineto($pdf, 1, 1);
  4 PDF_stroke($pdf);
  5 ?>
  6 

This PHP manual is Copyright © 1997, 1998, 1999, 2000 the PHP Documentation Group. It has been licensed under the GPL. Permission granted for display on the Abscissa Tech web site on March 9, 2000. The most recent PHP documentation is available at http://www.php.net/.