I want the following actions.
When any user clicks on "Place Order" on the checkout page, A pdf of this order will be automatically generated. And this pdf is automatically attached to email "Your Main Website Store order confirmation" and send it with this email. So User can directly see or download order pdf from an email account.
I tried many free extensions But did not found a suitable free extension. I found that after a click on "Place Order" button, I have to generate pdf and send its link or attached pdf file in email. But I did not found a code of place order.
Any help will be appreciated. Thank you.