I want to resize an image to 153mm x 103mm. It will not work. :-(
$pdf->Rect(7.4, 7.4, 153, 103, 'F', array(), array(128,255,255)); $pdf->setJPEGQuality(100); $pdf->Image('bildmaterial/test.jpg', 7.4, 7.4, 153, 103, 'JPG', '', '', true, 300, '', false, false, 0, false, false, false);
But why?
This is the result: http://eblx.net/45c46.png
I have solved this problem. This is the Solution:
$pdf->SetMargins(0, 0, 0); $pdf->SetAutoPageBreak(FALSE, 0);
Log in to post a comment.
I want to resize an image to 153mm x 103mm. It will not work. :-(
$pdf->Rect(7.4, 7.4, 153, 103, 'F', array(), array(128,255,255)); $pdf->setJPEGQuality(100);
$pdf->Image('bildmaterial/test.jpg', 7.4, 7.4, 153, 103, 'JPG', '', '', true, 300, '', false, false, 0, false, false, false);
But why?
This is the result: http://eblx.net/45c46.png
Last edit: Kim Tsung 2014-07-25
I have solved this problem.
This is the Solution:
$pdf->SetMargins(0, 0, 0);
$pdf->SetAutoPageBreak(FALSE, 0);