Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ JSON representation of the input data:

## Inline images supported attributes

[Click here](../document-generation-api/inlineimages.md) to refer documentation on how to add Inline Images.
You may find documentation for using inline images [here](../document-generation-api/inlineimages.md).

Formatting for image can be provided using the attributes of the img tag.
Formatting for images can be provided using the attributes of the img tag.

- The img tag supports the height and width attributes.

Expand Down
38 changes: 34 additions & 4 deletions src/pages/overview/document-generation-api/templatetags.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ A placeholder(text tags) gets replaced by the actual input data.
<InlineAlert slots="text"/>

A placeholder variable can only be applied to an input field of type
string, number or boolean. <br/> Formatting applied to the placeholder
variable in the document template will be retained in the output
document.<br/>
For more simplified styling and formatting for the placeholder tag from the input json data, please refer [styling and formatting](../document-generation-api/stylingformattingtags.md) section:
string, number or boolean.<br/> Please refer to the **Arrays** section to use array as placeholder variable.<br/> Formatting applied to the placeholder
variable in the document template will be retained in the output document.<br/>
For more simplified styling and formatting for the placeholder tag from the input json data, please refer [styling and formatting](../document-generation-api/stylingformattingtags.md) section.

JSON representation of the input data:

Expand Down Expand Up @@ -74,6 +73,21 @@ A prefix value can be specified for the placeholder variable. Doing so will appe
this value before the result of the tag.

![Placeholder tags with prefix image set](../images/placeholder_prefix.png)

**Arrays**

To work with arrays, please refer to the [JSONata Functions](#jsonata-functions) section.

JSON representation of the input data:

```json
{
"companyName": "Tech Corp",
"discountCoupons": ["SummerSale", "BlackFriday", "NewYearSpecial"]
}
```

![working_with_arrays](../images/working_with_array.png)
## Images

To dynamically insert an image in the document, add any image as
Expand Down Expand Up @@ -447,6 +461,22 @@ Here is the list of [supported aggregation functions](https://docs.jsonata.org/a
aggregate numerical calculation can only be applied to a list of
numbers.

## JSONata Functions
The Document Generation API supports various JSONata functions, including:

- [String Functions](https://docs.jsonata.org/string-functions)
- [Numeric Functions](https://docs.jsonata.org/numeric-functions)
- [Aggregation Functions](https://docs.jsonata.org/aggregation-functions)
- [Boolean Functions](https://docs.jsonata.org/boolean-functions)
- [Array Functions](https://docs.jsonata.org/array-functions)
- [Date/Time Functions](https://docs.jsonata.org/date-time-functions)
- [Higher Order Functions](https://docs.jsonata.org/higher-order-functions)


Please note that some functions may not produce the expected results. It is recommended to test these functions before incorporating them into your template.



## Adobe Sign

Adobe Sign text tags can be placed anywhere within the contents of the document template.
Expand Down
Binary file added src/pages/overview/images/working_with_array.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/pages/overview/releasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ Upgrading to the latest SDK should not break existing applications.

## Change history

### September 10, 2024; Added support for funtions in Table with Markers

- JSONata functions can be used in Table with Markers.

### August 23, 2024; Added new features for Document Generation API and updated Acrobat Service API postman collection

- Added base64 format support for inline images.
Expand Down