note 42846 deleted from function.pdf-open-file by tomsommer

From: Date: Mon, 31 May 2004 23:29:28 +0000
Subject: note 42846 deleted from function.pdf-open-file by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-70371@lists.php.net to get a copy of this message
Note Submitter: Xavier coves Romaguera ---- <?php $pdf = pdf_new(); //definir el pdf -open-// /* informació sobre el document -propietari del document- */ pdf_open_file($pdf,"./pdf/prueba.pdf"); //arxiu a crear// pdf_set_info($pdf, "Author","Xavier Coves"); pdf_set_info($pdf, "Title","proba"); pdf_set_info($pdf, "Creator", "xxxx@xxx.com"); pdf_set_info($pdf, "Subject", "pdf-document"); /* fer 2 pàgines */ for($i=1;$i<=2;$i++){ pdf_begin_page($pdf,595,842); //tamany de la pàgina // pdf_open_jpeg($pdf,"Enter the Matrix Front.jpg") or die("error"); pdf_set_font($pdf, "Arial", 15, "host"); // tipu de lletra, tamany.// pdf_set_value($pdf, "textrendering",2); pdf_show_xy($pdf, "A PDF document", 10, 790); pdf_set_font($pdf, "Arial", 8, "host"); // tipu de lletra, tamany.// pdf_set_value($pdf, "textrendering",4); pdf_show_xy($pdf, "Pàgina ".$i, 10, 775); pdf_end_page($pdf); } pdf_close($pdf); // tancar el pdf // ?>

« previous php.notes (#70371) next »