Multiple PDF Attachment via Email Connection

In this guide, we will explain how you can send multiple PDF files via an Email connection.

To go to the PDF Editor page, click on the "Action" drop-down corresponding to the form name from the Formyoula Dashboard.

image

You can use the #formyoula_split_pdf#  tag to generate multiple PDFs.

Note: - #formyoula_split_pdf# tag only supports the custom PDF you need to enable the custom pdf option from PDF editor as per the below image.

image

To use this #formyoula_split_pdf# tag you need to click on the PDF editor source button as per the below image.

image

In PDF source code you need to use the below HTML.

<!-- start of first PDF -->
<p>#formyoula_split_pdf#</p>

<!-- First PDF  Name-->
<!-- <p>#formyoula_split_pdf_name#First Suplier Name#formyoula_split_pdf_name#</p> -->

<h2>First Suplier Name Record</h2>

<table>
  <tr>
    <th>Company</th>
    <th>Contact</th>
    <th>Country</th>
  </tr>
  <tr>
    <td>Alfreds Futterkiste</td>
    <td>Maria Anders</td>
    <td>Germany</td>
  </tr>
  <tr>
    <td>Centro comercial Moctezuma</td>
    <td>Francisco Chang</td>
    <td>Mexico</td>
  </tr>
</table>

<p>#formyoula_split_pdf#</p>
<!-- end of first PDF -->

<!-- start of second PDF -->
<p>#formyoula_split_pdf#</p>

<!-- Second PDF  Name-->
<!-- <p>#formyoula_split_pdf_name#Second Suplier Name#formyoula_split_pdf_name#</p> -->

<h2>Second Suplier Name Record</h2>

<table>
  <tr>
    <th>Company</th>
    <th>Contact</th>
    <th>Country</th>
  </tr>
  <tr>
    <td>Alfreds Futterkiste</td>
    <td>Maria Anders</td>
    <td>Germany</td>
  </tr>
  <tr>
    <td>Centro comercial Moctezuma</td>
    <td>Francisco Chang</td>
    <td>Mexico</td>
  </tr>
</table>
 <p>#formyoula_split_pdf#</p>
<!-- end of second PDF -->

As per HTML code all the HTML between #formyoula_split_pdf#  will split into a separate PDF. In this example, I am trying to create two different PDFs for two different suppliers.

image

You can also use multiple names for the multiple pdf to do this you need to use #formyoula_split_pdf_name# tag.

Note - #formyoula_split_pdf_name# the tag should be inside of #formyoula_split_pdf# tag.

Now you can save the PDF changes by clicking on Save & Back to Dashboard button.

image

Now the last step is enabling pdf version 2 for generating multiple PDFs.

To do this you need to open the Formyoula Form Template (Form Builder).

And on browser URL you need to add /json/ right after the .com as per the below image.

image

After adding /josn/ in the URL you need to hit the enter button.

It will open the form in a JSON editor in this editor you need to add pdf_version attribute as per the below image.

image
"attributes": {
		"pdf_version": 2
	},

Now you can save the form by clicking on the Save Form button.

image

Now you can try the form. And on the email, you will get multiple PDFs as an attachment.

For any questions, please contact us - [email protected] or the Formyoula in-app chat 🙂