Created
June 6, 2012 09:52
-
-
Save producture/2881011 to your computer and use it in GitHub Desktop.
PDF Generation Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In a short time, using PHP and Symfony : | |
Create a form with this fields : | |
* First name | |
* Last name | |
* Address | |
* City | |
* ZipCode | |
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 ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment