On my iOS device I have a form (layout) that I want to send by email. Using a script, I create a pdf then attach to any email.
The script I use is attached to this. Unfortunately, about 5% of the time this fails. The pdf does not get attached to the email and I can't figure out why.