Code: Select all
$pdf = new Imagick($pages);
$pdf->setImageFormat('pdf');
$pdf->writeImages($temp_path.'/offer2.pdf', true);
OTHERWISE I GET THIS ERROR:
Fatal error: Uncaught exception 'ImagickException' with message 'unable to load module `/usr/lib64/ImageMagick-6.7.6/modules-Q16/coders/pdf.la':
file not found @ error/module.c/OpenModule/1278' in /home/nclos2/public_html/testing/itp.php:47
Stack trace: 0 /home/nclos2/public_html/testing/itp.php(47): Imagick->setimageformat('pdf')
1 /home/nclos2/public_html/testingblast_01.php(170): ImgToPdf->addTextToImage(Array, '520a7262da638', NULL)
2 {main} thrown in /home/nclos2/public_html/testing/itp.php on line 47
Hoping someone has dealt with this before.