You can merge publicly available images on your document:

  1. You can copy and paste any image directly into your template (including header and footer), that will be visible on every generated document.
  2.  You can also create a URL type field on master object to merge an image field. Use this field to enter URL of the image that you want to show on the document.
    1. You can also upload the image to Documents tab in Salesforce and copy and paste the link. Make sure you check the box Externally Available.
    2. You can paste the link to any externally available image, from your server, WordPress Media library etc. From your Document Action click “Edit Template Document” to edit the template.
      Image-Field
  3. From your Document Action click “Edit Template Document” to edit the template.
  4. Open object record and paste the copied image URL value in this field.
  5. From your Document Action click “Edit Template Document” to edit the template.
  6. Select the object and image field.
    1. If you want to learn more about using images from Files, see this article for more detail.
  7. Check the “Image” box then copy and paste Merge Field Code onto your template.
  8. Field will be displayed as an image on your newly generated Document.
  9. Image Size: If merging an image field into a single table cell or into template by itself from parent object, the table will get resized to it’s actual image size after document gets generated. If you want to restrict the size of the image and want it to be resized to fit the height/width of your table cell, you can click into the table cell and then click edit to modify the details. Then the image will be resized to fit the table cell height/width.
    Image-Fiels-Merge