Jako, ze w tym "dziale" php jestem nowicjuszem, mam do Was pytanie. Mianowicie probuje napisac skrypt generujacy pdfa zlozonego z kilku obrazkow wygenerowanych dynamicznie. Te obrazki sa generowane przez biblioteke GD i tutaj mam wlasciwie najwiekszy problem.
Wstawic obrazek, ktory jest "fizycznie" na serwerze to nie problem, ale jak mam w skrypcie odpowiednim obrazkom przypisac jakis konkretne zmienne/nazwy, zeby mozna je wstawic do pdfa.
Z gory dzieki za kazda pomoc

Pozdrawiam
Ponizej kod php:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"> </head><body> <table border=0> <tr><td>Imiê:</td><td> <input name="imie" /></td> <tr><td>Wiek:</td><td> <input name="wiek" /></td> <tr><td>Mail:</td><td> <input name="mail" /></td> <tr><td>Gadu-Gadu: </td><td><input name="gg" /></td> <tr><td>Opis:</td><td><textarea name="opis"></textarea><td><input type="submit" value="Submit"></form></td><?php require 'PDF.php'; // Require the class. //pobierz dane z formularza $u_imie=$_POST["imie"]; $u_wiek=$_POST["wiek"]; $u_mail=$_POST["mail"]; $u_gg =$_POST["gg"]; $im = @imagecreate(1123, 451) $background_color = imagecolorallocate($im, 0, 0, 0); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 10, 5, 5, "A Simple Text String", $text_color); imagejpeg($im); imagedestroy($im); $im2 = @imagecreate(1123, 451) $background_color = imagecolorallocate($im2, 0, 0, 0); $text_color = imagecolorallocate($im2, 233, 14, 91); imagestring($im2, 10, 5, 5, "A Simple Text String", $text_color); imagejpeg($im2); imagedestroy($im2); $im3 = @imagecreate(1123, 451) $background_color = imagecolorallocate($im3, 0, 0, 0); $text_color = imagecolorallocate($im3, 233, 14, 91); imagestring($im3, 10, 5, 5, "A Simple Text String", $text_color); imagejpeg($im3); imagedestroy($im3); $pdf = &PDF::factory('p', 'a4'); // Set up the pdf object. $pdf->open(); // Start the document. $pdf->setCompression(false); // Activate compression. //$pdf->setCompression(true); // Activate compression. $pdf->addPage(); // Start a page. $pdf->setFont('Arial', '', 8); // Set font to courier 8 pt. $pdf->setFont('Times', '', 12); // Set font to arial bold // italic 12 pt. $pdf->text(100, 100, $u_imie); // Text at x=100 and y=100. $pdf->setFillColor('rgb', 0, 0, 0); $pdf->setFontSize(10); // Set font size to 20 pt. //$pdf->rect(20, 20, 20, 20, 'd'); // Poczatek x,y, Szerokosc +x, +y $pdf->rect(20, 20, 269, 107, 'd'); // Wysokosc x,y, Szerokosc x, y $pdf->rect(289, 20, 269, 107, 'd'); // Wysokosc x,y, Szerokosc x, y $pdf->image('OBRAZEK', 125, 25); //tutaj chcialbym wstawic np. pierwszy obrazek, ale nie wiem jak go "zdefiniowac" $pdf->image('zdjecie.jpg', 25, 25); // zdjecie wstawione z serwera $pdf->setFillColor('rgb', 0, 0, 0); // Set text color to red. $pdf->setDrawColor('rgb', 0, 0, 0); // Set draw color to blue. $pdf->line(48, 38, 120, 38); // Draw a line. $pdf->text(100, 200, 'HELLO WORLD!'); // Text at x=100 and y=200. $pdf->setDrawColor('rgb', 0, 0, 1); // Set draw color to blue. $pdf->line(100, 202, 240, 202); // Draw a line. $pdf->setFillColor('rgb', 1, 1, 0); // Set fill/text to yellow. $pdf->rect(200, 300, 100, 100, 'fd'); // Draw a filled rectangle. $pdf->addPage(); // Add a new page. $pdf->setFont('Arial', 'BI', 12); // Set font to arial bold // italic 12 pt. $pdf->text(100, 100, 'Second page'); // Text at x=100 and y=100. $pdf->setLineWidth(4); // Set line width to 4 pt. $pdf->circle(200, 300, 150, 'd'); // Draw a non-filled // circle. $pdf->output(foo.pdf); // Output the file named foo.pdf ?>