pdf_scale

(PHP 3>= 3.0.6, PHP 4 >= 4.0.0)

pdf_scale -- Sets scaling

Popis

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

Funkce 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.

P°φklad 1. Scaling

<?php pdf_scale($pdf, 72.0, 72.0);
pdf_lineto($pdf, 1, 1);
pdf_stroke($pdf);
?>