diff --git a/src/pages/overview/document-generation-api/stylingformattingtags.md b/src/pages/overview/document-generation-api/stylingformattingtags.md index 143f64ade..ed0460d8c 100644 --- a/src/pages/overview/document-generation-api/stylingformattingtags.md +++ b/src/pages/overview/document-generation-api/stylingformattingtags.md @@ -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.) @@ -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 - " +} +``` +![Formatting Inline images with height and width](../images/FormattedInlineImageHeightAndWidth.png) + +Note: Here the size of image is formatted according to input data. + ## Tags Supported - diff --git a/src/pages/overview/images/FormattedInlineImageHeightAndWidth.png b/src/pages/overview/images/FormattedInlineImageHeightAndWidth.png new file mode 100644 index 000000000..bb22746a3 Binary files /dev/null and b/src/pages/overview/images/FormattedInlineImageHeightAndWidth.png differ