Sublime directory Surf the web anonymous Pagerank Monitor


Question about PDF and php

msthac01
Wed 12 March 2008, 10:13 pm GMT +0200
Does any one know if its possible to take variables from PHP and insert them into a PDF document?  I'm working on something now that would make things a lot easier if this was possible?  Any ideas

olaf
Thu 13 March 2008, 12:16 am GMT +0200
check fpdf.org or search for fpdi to add content to existing pdfs

panther
Wed 30 April 2008, 08:08 pm GMT +0300
i don't have much idea about this.
you should try with google to solve .


<snip /> go away spammer!

thek
Mon 26 May 2008, 11:13 pm GMT +0300
Dynamic pdf documents with PHP
R&OS: pdf class
http://www.ros.co.nz/pdf/ Visit through proxy

HTML to PDF converter
http://www.digitaljunkies.ca/dompdf/about.php#overview Visit through proxy

Ludovic
Tue 27 May 2008, 01:29 pm GMT +0300
<?php
// create handle for new PDF document
$pdf = pdf_new();
// open a file
pdf_open_file($pdf, "philosophy.pdf");
// start a new page (A4)
pdf_begin_page($pdf, 595, 842);
// get and use a font object
$arial = pdf_findfont($pdf, "Arial", "host", 1); pdf_setfont($pdf, $arial, 10);
// print text
pdf_show_xy($pdf, "There are more things in heaven and earth, Horatio,",50, 750);
pdf_show_xy($pdf, "than are dreamt of in your philosophy", 50,730);
// end page
pdf_end_page($pdf);
// close and save file
pdf_close($pdf);
?>

Save this file, and then browse to it through your Web browser. PHP will execute the script, and a new PDF file will be created and stored in the location specified at the top of the script.


Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional