Ben 595x842px boyutlarında bir görüntü var, ben pdf bir sayfa için bir arka plan olarak resim kullanmak istiyorum. Ben tüm arka plan doldurmak istiyorum. Bunu nasıl yapabilirim? Ben şimdi bu var:
<?php
error_reporting(E_ALL);
set_include_path(get_include_path() . PATH_SEPARATOR . 'd:/data/o');
// Load Zend_Pdf class
include 'Zend/Pdf.php';
// Create new PDF
$pdf = new Zend_Pdf();
// Add new page to the document
$page = $pdf->newPage(Zend_Pdf_Page::SIZE_A4);
$pdf->pages[] = $page;
// Load image
$image = Zend_Pdf_Image::imageWithPath('bg.jpg');
// Draw image
$page->drawImage($image, 0, 0, 842, 595);
// Save document as a new file or rewrite existing document
$pdf->save('test.pdf');
echo 1;
?>
Ama çıkan pdf, terrbile olan plan görüntüler çok bulanık ve tüm arka plan doldurmak değil.