Inject Attached PDFs in Templates

Inject Attached PDFs in Templates

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 via links after uploading.


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:

  1. Reference the Attach field’s data name
    {( EMBEDPDF({{fieldName}}) )}
  2. 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 a page break will be placed before and after by our data template engine.
  • 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 (being Word or Excel format, these can be manually removed.

  • The embedded PDF file name must not contain any spaces.


Embedding Multiple PDFs

It is possible to embed multiple PDFs into a document output by utilising 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, on its own page, in order 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).

More information on creating Data Templates might be of interest.

    • Related Articles

    • Word Templates

      Our platform allows you to export Data in the layouts you want using Microsoft Word templates or Excel. If you already have Word documents that you have been printing out to use as data capture Forms, you can reuse them as data templates with a few ...
    • Excel Templates

      Our platform allows you to export Data in the layouts you want using Microsoft Excel templates. If you already have Excel documents that you have been printing out to use as data capture Forms, you can reuse them as data templates with a few minor ...
    • Custom Templates FAQs

      Can I use Word/Excel 2003? No. We support .DOCX and .XLSX files only which means that Office 2003 formats (.doc and .xls) are not supported. Note that we also do not support Word .dotx files and .xlsm (these are special Word/Excel file types.) Can I ...
    • Repeatable Data in Templates

      After capturing repeatable data, you might want to customize how it displays in a PDF output using Word or Excel templates. There are two ways to output the answers for these repeatable fields in your template: Repeat rows in a Word table or Excel ...
    • Task Templates

      Task Templates let you pre-set various properties of a regular task within your business process as a template that can be used when creating a new task, making the process quicker for dispatchers. Without a template, you need to set every aspect of ...