This could be done in simple way. Put a script on IPN URL, the script will capture the transaction ID passed by Paypal, then using GetTransactionDetail function of PayPal API with Transaction ID as parameter you could retrieve the payment detail including:
- payment status
- payee detail: email, name, etc
- payment detail: description, amount, etc
So, then you could generate PDF based on the detail above. Then you could send email for confirmation purpose or other things.
That's it
Let me know if this is what you look for.