PDF automatic Generation

Hey @FahdERM -

Totally possible. A few different approaches to this:

  1. Create a dedicated document step that is formatted like you want your PDF.
  2. Use the Print step trigger action to save the step to a PDF document
  3. Send that PDF out with a custom widget to encode the attachment as base64. Thread here:
    Attachment SendGRid

Second approach (tricker to build, better user experience):

  1. A custom widget where the PDF is created. You pass it the text, and x and y locations, and it returns the b64 encoded image. An example of this is attached.
  2. Send the b64 from this widget to the sendgrid connector linked above.
    Attachment SendGRid

The second approach is way easier on the user side, because they don’t need to save to a specific location, then refind that file when sending it, but either should work.

Pete
customWidget-Form V2 (1).json (1.9 KB)
NOTE: This widget hasn’t gone through the standard Tulip code review process, use at your own risk

1 Like