I'm using PHP 5, so I had to make some changes to support the PDF-Cover generation.
Here are the changes: (cover.php)
1. Step:
Code: Select all
$pdfdfimage = pdf_open_image_file($pdf, 'jpeg', $bitmap['cd_back']);
$sx = 151 / pdf_get_image_width($pdf, $pdfdfimage);
$sy = 118 / pdf_get_image_height($pdf, $pdfdfimage);
Code: Select all
$pdfdfimage = pdf_open_image_file($pdf, 'jpeg', $bitmap['cd_back'], "", 0);
$sx = 151 / pdf_get_value($pdf, "imagewidth", $pdfdfimage);
$sy = 118 / pdf_get_value($pdf, "imageheight", $pdfdfimage);
Code: Select all
pdf_set_font($pdf, 'Helvetica', 3, 'host');
pdf_show_boxed($pdf, $temp, 6.5, 0, 138, 108, 'center');
Code: Select all
$font = PDF_findfont($pdf, "Helvetica", "winansi",0);
pdf_setfont($pdf, $font, 3);
pdf_show_boxed($pdf, $temp, 6.5, 0, 138, 108, 'center', "");
Code: Select all
pdf_set_font($pdf, 'Helvetica', 4, 'host');
Code: Select all
pdf_setfont($pdf, $font, 4);
Code: Select all
pdf_set_font($pdf, 'Helvetica', 4, 'host');
Code: Select all
pdf_setfont($pdf, $font, 4);
Code: Select all
$pdfdfimage = pdf_open_image_file($pdf, 'jpeg', $bitmap['cd_front']);
$sx = 121 / pdf_get_image_width($pdf, $pdfdfimage);
$sy = 120 / pdf_get_image_height($pdf, $pdfdfimage);
Code: Select all
$pdfdfimage = pdf_open_image_file($pdf, 'jpeg', $bitmap['cd_front'], "", 0);
$sx = 121 / pdf_get_value($pdf, "imagewidth", $pdfdfimage);
$sy = 120 / pdf_get_value($pdf, "imageheight", $pdfdfimage);