It's now possible to inject PDF attachments as text into Word/Excel template outputs in conjunction with field-captured data.
Upload an 'industry-standard' A4 PDF document using our Attach Field and embed it within a custom data template. This feature will significantly improve processes requiring uploaded documents to be injected within your custom output.
By default, attached documents remain accessible view links after upload.
How To
Our EMBEDPDF() function uses a fieldName or full URL link for use in Word and Excel Data Templates and can be injected in one of two ways:
- Reference the Attach field's data name
{( EMBEDPDF({{fieldName}}) )} - Reference a full URL link to a PDF
{( EMBEDPDF(‘http://full-url-link’) )}
Note
- When creating your Word/Excel data template, the EMBEDPDF() function should be placed separately on its own blank page. The PDF's content will replace the blank page.
- If the EMBEDPDF() function isn't placed on a separate page, the data template engine will presume that a new page must be created, and our data template engine will place a page break before and after.
- Instead of a page break being added, it will remove the page the placeholder is on, so any other data on the placeholder page will be removed, and insert the PDF there
- {( )} and {{( )}} are supported
- If it is not exported to a PDF document, the placeholder will remain in the template export (in Word or Excel format; these can be manually removed.
Embedding Multiple PDF's
It is possible to embed multiple PDFs into a document output using the {{!REPEATSTART}} function, adding a "Page Break" into the document and then having the EMBEDPDF() function output the PDF. Each EMBEDPDF() statement must exist on its own line and its own page for this to work. The screenshot below shows how to do this in MS Word.
Limited To
- PDF documents that can be embedded.
- "Output to PDF" cases (i.e., Export as PDF, Output File Format set to PDF).