---
schema_version: "1"
id: fdb72f047ae73c4e542d059af52f402085f45f51c756b12951d43f4097008823
title: Process Dynamic Images During Client-Side Document Generation
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/doc_gen_process_dynamic_images_during_client-side_document_generation.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.doc_gen_process_dynamic_images_during_client-side_document_generation.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 7cf75bc615ab9ce658ec35a29039ab7cf5b3b9dd9664776600cb6712be7c7d51
description: Using image tokens in a Microsoft Word or Microsoft PowerPoint document templates, you can now insert dynamic images in generated .docx and .pdf files.
products:
  - Omnistudio Document Generation
release: "264"
---
# Process Dynamic Images During Client-Side Document Generation

Using image tokens in a Microsoft Word or Microsoft PowerPoint document templates, you can now insert dynamic images in generated .docx and .pdf files.

With dynamic image tokens you can insert images such as product images, barcodes, pie charts in your document. An image token format is **`{{IMG_<imagetokenname>}}`**, for example, {{IMG\_header}}.

**Why:** You can use a single image, multiple images, and loop images. Image tokens can be placed anywhere within a document template, such as in paragraphs, tables, and text boxes. Use a token in a header or footer or within a repeating content section to pass an array of images. The height and width of the images can be defined in a Omnistudio Data Mapper Transform.

**Where:** This feature is available to all customers (new and existing) who upgrade to Summer '22.

**Who:** To design document templates, users need DocGen Designer or Contract Admin permissions. To generate documents, runtime permissions are needed.

**How:** To insert dynamic images into a generated document, first store the images in the Salesforce org. You can store the images in Static Resources, the Files, the Documents tab, or the Notes and Attachments of an object. Create custom text fields in the object. Map the uploaded images to the custom fields using the image API names. Add image tokens in the document template, provide data mapping in the Data Mappers(Extract and Transform), and then generate the document with dynamic images.

The image shows an example of a Word document with a list of products, their names, and their images. For each product, a dynamic image is inserted.

![An example of a Word document with a list of products, their names, and their images. For each product, a dynamic image is inserted.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-document_generation-264-0-0-production-enus/f76d5573-56ce-4576-b4b2-7a4f1f2e622b/resources-product/images/doc_gen/clm238_dynamicimages.png)