what about stretching out the trainling grand summary to make it larger?
Thanks, but that did work either.
Well, if having the CC Authorization form (“the form”) as a separate page in your invoice is an option for you, then just use the Append function.
First, create a layout for the form. Since it's just supposed to hold boilerplate text and doesn't need any data, you can simply create a new layout and base it on the same table occurrence as your invoice print layout.
Don't put any fields on it, simply create a form with text placeholders and whatever graphic elements you need (boxes, lines etc.); I guess you did that already in your first attempt.
In your script, after saving your invoice as PDF, go to the new form layout. Use Save Records as PDF again and with the same path, but check the Append to existing PDF option (and make sure to only save the current record; otherwise you'll get one form page per invoice line item …).
Now, your form has been appended to the PDF you created moments before, and the Send Mail step uses the same variable to create its attachment, which is the PDF in its freshly appended “form” (no pun intended).
So, after creating the new layout, you just need to add
Go to Layout [ "CC Authorization form" ( Invoice Data ) ]
Save Records as PDF ( $PATH ; Append; No dialog ; Current Record ]
to your script.
Thank you so much so all the detail information and it worked as a charm.
I tried a couple of times and noticed that I did not open the pdf file in the mail program therefore I did not see the second page. I though first that the script did not work but noticed that I was not paying attention.
Thanks again for all your help!!! Cheers