Skip to content

Commit

Permalink
sync with master
Browse files Browse the repository at this point in the history
  • Loading branch information
mahour committed Nov 5, 2024
1 parent 0615bfa commit 4a609c4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ Styling for the text tag can be provided using the json data through the HTML ba

- Any HTML tags which are not supported will be ignored.

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

- The img tag supports the height and width attributes.

- Any other unsupported attributes inside the img tag will be ignored.

## Inline styling attributes supported

- font-size : Xpt or Ypx ; X=dynamic positive integer 1–1638 pt, 1pt = 1/72 inch; Y=dynamic positive integer 1–2184 px, 1px = 1/96 inch ( point (pt) and pixels (px) are the only supported unit for font size.)
Expand All @@ -84,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
23 changes: 19 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 a 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,22 @@ 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
5 changes: 5 additions & 0 deletions src/pages/overview/releasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ Upgrading to the latest SDK should not break existing applications.

- PDF Watermark and PDF Accessibility Checker operations are now available for all the users in PDF Services SDKs.


### October 1, 2024; Java SDK 4.1.1 patch release

- Bug fixes and stability improvements.

### September 10, 2024; Adobe Document Generation Server Side Release

- Enhanced support for [JSONata functions](../document-generation-api/templatetags/#jsonata-functions) in Table Tag with Markers.
Expand Down

0 comments on commit 4a609c4

Please # to comment.