Skip to main content
Participant
August 5, 2022
Question

Doc Generate API - Embed a list in a Table

  • August 5, 2022
  • 2 replies
  • 326 views

hi, any trying to use this to achive a list of suggestions to appear in a table 

{ "flaggedTokens": 
[   {   "offset": 0, 
        "type": "UnknownToken", 
        "token": "Hollo",
        "suggestions": 
        [   { "textly": "Hello" }, 
            { "textly": "Hollow" } 
        ]
    }, 
        
    {   "offset": 7, 
        "type": "UnknownToken", 
        "token": "wrld",
        "suggestions": 
        [ { "textly": "world" } 
        ] 
    } 
] 
}


I have tried many options and currently table in my Word Document looks like this: 

 

but Im not getting the desired results.

Customer wants a list of many Suggestions per line in table. 

And was hoping to use a list as they are numbered items. 

I have it working when 1 long field with all the Suggestions

eg.  1) do this 2) do that 3) do those

 

but these shouldnt each be on a separate line eg.

1) do this

2) do that

3) do those

 

any help would be greatly appreciated as spent few days on this now 😞

thanks
thanks 

    This topic has been closed for replies.

    2 replies

    PaulLarryAuthor
    Participant
    September 30, 2022

    received an email today to say a new version of the API is available, and it does now allow me to achieve what we need to do. maye it already existed, but the doco didnt explain how to use it.

    but as explained in this page now, you can use HTML tags like <BR> each to better format the lists within tables 

    Word Add-in | Document Generation API | Adobe PDF Services

    PaulLarryAuthor
    Participant
    August 15, 2022

    no comments yet, getting worried that this isnt possible. Surely must be possible as seems relatively standard thing to be able to do for providing a Tax Invoice