Google Docs: sign a document sent for eSignature
Input
url requiredLink to the PDF to sign (https://drive.google.com/file/d/<id>/..., as list_signature_requests or request_signatures return) or the bare file id.
fullName requiredFull name of the signer; Google draws the signature from it and prints it in name fields.
account optionalGoogle account to sign as when the browser is signed in to several.
initials optionalThe signer's initials. Needed when the document has initials fields (get_signature_request lists them).
textFields optionalValues for the document's text fields, one per field, by the fieldId get_signature_request returns. Needed when the document has text fields.
acceptTerms optionalTrue when the user agrees to Google's eSignature terms of service, which Google asks to accept before completing a signature. Without it, the script stops at that step and signs nothing.
Default: falseOutput
title requiredfileId requiredsigned requiredsignedAs requiredEmail of the account that signed.
otherSignersPending requiredSigners who have not signed yet, besides this account. When 0, Google emails the signed copy to everyone.
url optionalfields optionalThis signer's fields, from Google's data: type, page number, and for text fields the value Google received.
fieldsSigned optionalFields filled by this run (signatures, initials, names and text); date fields fill themselves and are not counted.
