PHP Manual
Prev |  | Next

# 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

Prev | Home | Next
PDF_translate | Up | PDF_rotate