I do a system("html2ps SOME.html > SOME.pd");
then I do a system("ps2pdf SOME.pd"); which gives me SOME.pdf Which I then read into a variable with binary option, $fi=fopen("SOME.pdf","rb"); $binfile = fread ($fi, filesize ("SOME.pdf")); fclose($fi); then $encoded_attach = chunk_split(base64_encode($binfile)), and finally attach it to my email (I'm using mail() function). html2ps and ps2pdf are system() calls and need to be installed on your system for this to work. Output from my PHP shell script; Processing E-voice file complete. 467 E-voices sent. START - 08:00:00 STOP - 08:09:19 James -----Original Message----- From: peter tatischev [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 9:43 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP & PDF Why not mail it as MIME?? if that's not the case, refer to http://www.php.net/manual/en/ref.pdf.php ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 17, 2002 5:17 PM Subject: [PHP] PHP & PDF > Hi the ML > > I have the following question : > > I have constructed several pages with PHP which look likes some reports. (I > attached one example to my mail) > > Now I need to convert this HTML page to PDF to send it by mail . > > Does any one has an idea ? > > Laurent Drouet > > (See attached file: samples.zip) > ######################### > This message has been scanned for viruses with F-Secure Anti-Virus for > Lotus Domino and it has been found clean. > > For more information about computer viruses, connect to > http://www.F-Secure.com/vir-info/. > ######################### > ---------------------------------------------------------------------------- ---- > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php