Skip to content
Merged
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 @@ -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 @@ -82,6 +76,27 @@ JSON representation of the input data:

![Styling Tags output when style for font-size, font-weight and font-style attribute was added to span tag](../images/stylingAttributesOutput.png)

## Inline images supported attributes

[Click here](../document-generation-api/inlineimages.md) to refer documentation on how to add Inline Images.

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.

JSON representation of the input data:

```json
{
"ContentBlock": "sample image with height and width - <img src=\"https://documentcloud.adobe.com/dc-docgen-app/assets/dc_icon.png\" height=\"200\" width=\"200\">"
}
```
![Formatting Inline images with height and width](../images/FormattedInlineImageHeightAndWidth.png)

<b>Note:</b> Here the size of image is formatted according to input data.

## Tags Supported

- <span\>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.