public
Created

PDF Generation Test

  • Download Gist
pdftest.txt
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
In a short time, using PHP and Symfony :
Create a form with this fields :
* First name
* Last name
* Address
* City
* ZipCode
* Email
On submit, the script generates a pdf file with this content :
"
From : ACME Corp
To : [First Name] [Last Name]
[ Address + ZipCode + City]
 
Dear FirstName,
 
Thank you for your payment of [RANDOM AMOUNT between $1000 and $1000000] received on [last monday date]
 
The Customer Service team.
"
 
and with in the background a watermark with this file : http://www.office-supply-store.us/office/office-supply/208.255.22.149/Large/SCOS4008.JPG
 
The pdf file should be sent to the email address entered in the form. The from field should be "payments@producture.com".
 
 
 
Thanks and good luck !

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.