1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
| $pdf = pdf_new();
pdf_open_file($pdf, "test.pdf");
pdf_set_info($pdf, "Author", "reventlov");
pdf_set_info($pdf, "Title", "pages de test");
pdf_set_info($pdf, "Creator", "See Author");
pdf_set_info($pdf, "Subject", "Testing");
//image_01
pdf_begin_page($pdf, 842, 595);
pdf_add_outline($pdf, "Page 1");
pdf_set_font($pdf, "Times-Roman", 12, "host");
pdf_set_value($pdf, "textrendering", 1);
$images_01=pdf_open_image_file($pdf,"jpeg","1.jpg","","");
pdf_place_image ($pdf,$images_01,0,0,0.36);
pdf_show_xy($pdf, "Times Roman", 120, 405);
pdf_show_xy($pdf, "tagadatsointsoin12356", 150, 390);
pdf_moveto($pdf, 50, 740);
pdf_lineto($pdf, 330, 740);
pdf_stroke($pdf);
pdf_end_page($pdf);
//image_02
pdf_begin_page($pdf, 842, 595);
pdf_add_outline($pdf, "Page 2");
pdf_set_font($pdf, "Times-Roman", 30, "host");
pdf_set_value($pdf, "textrendering", 1);
$images_02=pdf_open_image_file($pdf,"jpeg","2.jpg","","");
pdf_place_image ($pdf,$images_02,0,0,0.36);
pdf_show_xy($pdf, "Times Roman", 50, 400);
pdf_moveto($pdf, 50, 740);
pdf_lineto($pdf, 330, 740);
pdf_stroke($pdf);
pdf_end_page($pdf);
//image_03
pdf_begin_page($pdf, 842, 595);
pdf_add_outline($pdf, "Page 3");
pdf_set_font($pdf, "Times-Roman", 30, "host");
pdf_set_value($pdf, "textrendering", 1);
$images_03=pdf_open_image_file($pdf,"jpeg","3.jpg","","");
pdf_place_image ($pdf,$images_03,0,0,0.36);
pdf_show_xy($pdf, "Times Roman outlined", 50, 750);
pdf_moveto($pdf, 50, 740);
pdf_lineto($pdf, 330, 740);
pdf_stroke($pdf);
pdf_end_page($pdf);
//image_04
pdf_begin_page($pdf, 842, 595);
pdf_add_outline($pdf, "Page 4");
pdf_set_font($pdf, "Times-Roman", 30, "host");
pdf_set_value($pdf, "textrendering", 1);
$images_04=pdf_open_image_file($pdf,"jpeg","4.jpg","","");
pdf_place_image ($pdf,$images_04,0,0,0.36);
pdf_show_xy($pdf, "Times Roman outlined", 50, 750);
pdf_moveto($pdf, 50, 740);
pdf_lineto($pdf, 330, 740);
pdf_stroke($pdf);
pdf_end_page($pdf);
//image_05
pdf_begin_page($pdf, 842, 595);
pdf_add_outline($pdf, "Page 5");
pdf_set_font($pdf, "Times-Roman", 30, "host");
pdf_set_value($pdf, "textrendering", 1);
$images_05=pdf_open_image_file($pdf,"jpeg","5.jpg","","");
pdf_place_image ($pdf,$images_05,0,0,0.36);
pdf_show_xy($pdf, "Times Roman outlined", 50, 750);
pdf_moveto($pdf, 50, 740);
pdf_lineto($pdf, 330, 740);
pdf_stroke($pdf);
pdf_end_page($pdf);
//image_06
pdf_begin_page($pdf, 842, 595);
pdf_add_outline($pdf, "Page 6");
pdf_set_font($pdf, "Times-Roman", 30, "host");
pdf_set_value($pdf, "textrendering", 1);
$images_06=pdf_open_image_file($pdf,"jpeg","6.jpg","","");
pdf_place_image ($pdf,$images_06,0,0,0.36);
pdf_show_xy($pdf, "Times Roman outlined", 50, 750);
pdf_moveto($pdf, 50, 740);
pdf_lineto($pdf, 330, 740);
pdf_stroke($pdf);
pdf_end_page($pdf);
pdf_close($pdf);
pdf_delete($pdf);
echo "<A HREF=test.pdf>finished</A>"; |
Partager