Skip to main content
bruceb92825582
Participant
May 11, 2022
Question

Document Generation: Table of Contents does not update

  • May 11, 2022
  • 1 reply
  • 2780 views

In my testing of the Document Generation service, I have found that a Table of Contents specified in the Word template does not get updated after the JSON data merge and before the PDF is rendered. Is this a limitation of the service or is there a way to get the Table of Contents to update?  

    This topic has been closed for replies.

    1 reply

    Raymond Camden
    Community Manager
    Community Manager
    May 12, 2022

    Can you share an example of your source Word doc and data so I can confirm? If so I can file a bug.

    bruceb92825582
    Participant
    May 12, 2022

    Thanks for looking into this!

    Word doc and sample output are attached.

    Data:

     

    {
    "customerName": "Kane Miller",
    "customerVisits": 100,
    "itemsBought": [
    {
    "name": "Sprays",
    "quantity": 50,
    "amount": 100
    },
    {
    "name": "Chemicals",
    "quantity": 100,
    "amount": 200
    }
    ],
    "totalAmount": 300,
    "previousBalance": 50,
    "lastThreeBillings": [
    100,
    200,
    300
    ],
    "photograph": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88h8AAu0B9XNPCQQAAAAASUVORK5CYII="
    }

    Adobe Employee
    September 21, 2023

    Where do we log feature requests as this would be very useful to have? I have used another Word merge API in the past and it had options to update TOC and other Fields (equivalent to Ctrl+A then F9 in Word).    


    @bruceb92825582  Can you please elaborate on the experience you got with another Word merge APIs. Does it open the word with a pop-up with message -"this document contains fields that may refer to other files. Do you want to update the fields in this document?". 

    CC @Raymond Camden