pdf_findfont($pdf, "Times-Roman", "host"); : pdf_findfont « PDF « PHP






pdf_findfont($pdf, "Times-Roman", "host");

 
$pdf = pdf_new( );
    pdf_open_file($pdf, "/path/to/your.pdf");
    pdf_begin_page($pdf, 500, 800);

    $testimage = pdf_open_image_file($pdf, "jpeg", "myimage.jpg");
    pdf_place_image($pdf, $testimage, 0, 0, 0.5);


    for ($i = 1; $i < 10; ++$i) {
            pdf_begin_page($pdf, 500, 800);

            pdf_setfont($pdf, $times, 24);
            pdf_show_xy($pdf, "This is page $i", 50, 750);

            pdf_end_page($pdf);
    }
    pdf_close($pdf);
    pdf_delete($pdf);
  
  








Related examples in the same category