bakePageFormAndSendAsPDF
Function
VabletFormTools.bakePageFormAndSendAsPDF(email,callingButton,pageDocumentObject,pdfPageSize,subject,attachmentName)
Description
Converts form, and special Vablet elements on the page to text and image elements to 'bake' them in. Then creates and emails a PDF from the baked page.
Arguments
| Argument | Description |
|---|---|
| Email address to send baked PDF to. | |
| callingButton | The button pressed to call the function. Used for hiding button in baked PDF. |
| pageDocumentObject | This is the HTML pages document, a global called document typically. |
| pdfPageSize | The rendered PDF page size. It is a JSON object with width and height properties. Ex: {'width':pageSizeWidth,'height':pageSizeHeight} |
| subject | The subject title for the email. |
| attachmentName | The file name of the attachment. |
Return
- success - Always returns success.