Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (6 sloc) 318 Bytes
// Receives {documentToPdf:documentToPdf,formResponse:formResponse} from generateDocument
function generatePdf(args) {
var docblob = args.documentToPdf.getAs('application/pdf');
var file = DriveApp.createFile(docblob);
return {doc:args.documentToPdf,file:file,email:args.formResponse.getRespondentEmail()};
}
You can’t perform that action at this time.