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
RE: [PHP] PHP PDF
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
Re: [PHP] PHP PDF
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 ? Check out HTMLDoc. It works wonders for us. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP PDF
I'd suggest you go for FPDF, a free PHP class for generating PDF files fast easy. It's pretty good for simple stuff (i.e. 99% of my work at least) and has a fast learning curve. www.fpdf.org cheers, thalis On Fri, 17 May 2002 [EMAIL PROTECTED] wrote: 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
RE: [PHP] PHP PDF
On Fri, 17 May 2002, James E. Hicks III wrote: I do a system(html2ps SOME.html SOME.pd); then I do a system(ps2pdf SOME.pd); How about just: system('html2ps some.html | ps2pdf some.pdf'); ? miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP PDF
I've gotta be able to do either one. Sometimes the script just stops with the PS and sends that in the email based on a flag. It depends on what format the customer prefers his invoices in. James -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 2:02 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] PHP PDF On Fri, 17 May 2002, James E. Hicks III wrote: I do a system(html2ps SOME.html SOME.pd); then I do a system(ps2pdf SOME.pd); How about just: system('html2ps some.html | ps2pdf some.pdf'); ? miguel -- 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
Re: [PHP] Php/Pdf application
I don't believe you can do 1, and i'm not clear on what you're asking in 2. I've found Adobe's security stuff to be perfectly adequate. It gives you the options on what to allow them to do -- separate passwords can be assigned for viewing and modifying the file, and you can prevent any/all of the following: Printing the file Changing the file Selecting Text and Graphics Adding Notes and Form Fields I have never seen any issues on the web regarding this being insecure, and use it frequently. I have also tried to open/modify protected files in Illustrator and other PDF-native programs, without any luck. Why re-invent the wheel? Justin French Creative Director http://Indent.com.au on 10/04/02 2:36 AM, Geoff Hankerson ([EMAIL PROTECTED]) wrote: I am wondering if one or more of you can point me in the right direction on this one. Our company has intellectual property (legal forms) that is in the form of a pdf. We want to sell this over the Web but a regular pdf is not secure and it would allow users to make unlimited copies and have unlimited use. I know Adobe gives you the ability to assign a password to a PDF so it cannot be altered but I don't think this will suffice. We need to either: 1. Let the user print the PDF from the browser without displaying it to the screen (not sure this is feasible) or 2. Do a server side mail-merge without using Acrobat form fields. Just looking for a pointer in the right direction. Thanks in advance for any and all help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP .PDF .ZIP ???
Yes, PHP can do pdf and can READ zip files. I am not sure if PHP can make the pdf unprintable, or locked. You can find info on the pdf functions here: http://www.php.net/manual/en/ref.pdf.php and info on the zip functions here: http://www.php.net/manual/en/ref.zip.php Since those are read-only functions, you could use exec() or system() to zip your files. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: Jason Caldwell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 07, 2002 12:57 PM Subject: [PHP] PHP .PDF .ZIP ??? I need to automatically create a .PDF file from a *dynamically created* text file, then .ZIP that file up. Then *ultimately* have that file attached to an email and automatically sent. Can PHP do .PDF files? .ZIP Files? The caveat on the .PDF file is; it also needs to be locked (or password protected) like an EBOOK, where the end user will not be able to copy and paste out the contents -- I'm considering them not being able to print it also-- just the ability to view it on the screen. Can PHP help with all this? If so; if anyone has some sample code, that would be *very* helpful. Thanks. Jason -- 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