You can set up a webhook that sends you a JSON when an Order is paid, and with that JSON you can automatically create a PDF. You can use a library like this to convert a json into a PDF.
https://pdfkit.org/