I am a Google App Script beginner.
My script purpose is to create a .PDF document using a Google doc with variables.
At line 19 , I have an error showing at this line :
const newTempFile = templateDoc.makeCopy(tempFolder);
Here is the error message

It s stating that templateDoc.makeCopy is not a function
How can I fix this error ?
here is my code

Thank you for your help
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/64be6ada-2655-4868-a85d-bd3e9cc7b367n%40googlegroups.com.