A script that can do the following:
1) Grab POST variables from a Shopping Cart after checkout.
2) Insert a page into a PDF containing buyer's information (from POST variables).
3) Insert buyer's information in the footer of each page of a PDF (after the title page).
4) Generate a random, unique 10 digit code and insert it into the final page of the PDF and a MySQL table.
5) Lock/Secure PDF to restrict editing/copying of text.
6) Allow / Restrict access to a certain webpage based on the above-mentioned code as a password (one-time-access only - then code/coupon expires).