try this ezpdf class http://www.ros.co.nz/pdf/readme.pdf . they got some sample code to rotate the text and how to embed the image in pdf. Example
for ($angle=0;$angle<360;$angle=$angle+20){ $r=rand(0,100)/100; $g=rand(0,100)/100; $b=rand(0,100)/100; $pdf->setColor($r,$g,$b); $pdf->addText(300+cos(deg2rad($angle))*40,300- sin(deg2rad($angle))*40,20,$demotext,$angle); { $pdf->stream();
source share