pdf_scale

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)

 
;

 
?