PDF_scale

PDF_scale -- Sets scaling

Description

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

The PDF_scale() function set 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

<?php PDF_scale($pdf, 72.0, 72.0);
PDF_lineto($pdf, 1, 1);
PDF_stroke($pdf);
?>