Hello
i am trying to make an invoice system using php, i made a design of the invoice
when i add it throught php code as a background the image is destroyed :S
is there anyother way to include an image with same good quality?
or to edit an already PDF file, to add text to it throught php, because i managed to export the design to a psd with the a very good quality
any solution for the two options?
Thank You
$pdf = pdf_new();
pdf_open_file($pdf, "C:\AppServ\www\bennyboy.pdf");
pdf_set_info($pdf, "Author", "Djnaf");
pdf_set_info($pdf, "Title", "Creating a pdf");
pdf_set_info($pdf, "Creator", "Goo");
pdf_set_info($pdf, "Subject", "Creating a pdf");
pdf_begin_page($pdf, 595, 842);
pdf_set_font($pdf, "Helvetica-Bold" , 12, winansi);
//PDF_show_boxed($pdf, $text, 50, 100, 400, 300, "left");
//pdf_show_xy($pdf, "hire eieie ue euihe uih weuie ueuiweuiweuiwe uiweuiwe weui iuweuiweuiwe",50, 10);
//$gif_image = pdf_open_png($pdf, "tt.png");
//pdf_place_image($pdf, $gif_image, 15, 0, 1.0);
$gif_image = pdf_open_image_file($pdf, "png", "2.png");
pdf_place_image($pdf, $gif_image, 10, 10, 1.0);
pdf_close_image($pdf, $gif_image);
pdf_end_page($pdf);
pdf_close($pdf);
echo "<A HREF=\"bennyboy.pdf\" TARGET=\"_blank\">Open pdf in a new window</A>"