Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Using Images with Document Generation API

New Here ,
Oct 04, 2022 Oct 04, 2022

Hi there,

 

I'm trying to dynamically insert images into a document in a repeating section. For some reason this isn't working for me at all and I was hoping I could get some help. I've tried using the image urls as well as base 64 encoding.

 

My document has the following:

 

{% repeating-section backup[number > 0] %}

Jade263293244st2_0-1664871754433.pngexpand image

 

 

{{name}}

{% end-section %}

 

With the alt text of the image:
{
"location-path": "path",
"image-props": {
"alt-text": "Backup Load"
}
}

 

And the json is as follows:

{
  "paymentType""cash",
  "client": {
    "name""Jade",
    "address""Placeholder Address"
  },
  "recommendation": {
    "label""7.1 kWp Solar Panels + 7kWh Storage",
    "outputkWhYearOne""56,739",
    "priceInclVATR""250,000",
    "firstYearSavings""20,123"
  },
  "backup":[
    {"name":"Electric Fence""number"1"path""https://media.umbraco.io/mangrove/iopbdhw4/electric_fence.svg"},
    {"name":"CCTV""number"6"path""https://media.umbraco.io/mangrove/v5eif5al/cctv.svg"},
    {"name":"LED Lights""number"0"path""https://media.umbraco.io/mangrove/r31jgjzg/led_lights.svg"}
]
}
TOPICS
Document Generation API
316
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Oct 06, 2022 Oct 06, 2022
LATEST

I'm not able to replicate the error. It worked as expected.Would you be ok sharing your Word doc so I can test it along with your data shown here?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources