If there is any chance 2 or more people might request a pdf at the same time then app script might bump into itself. Also if there are any changes to GSheet while app script is running it may create a second pdf.
Satisfying all these conditions is more work than learning integromat. I would highly recommend using integromat for this.
If you insist on app script I’ve used this from @Uzo