Skip to content

Instantly share code, notes, and snippets.

@producture
Created June 6, 2012 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save producture/2881011 to your computer and use it in GitHub Desktop.
Save producture/2881011 to your computer and use it in GitHub Desktop.
PDF Generation Test
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 !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment