Images
Last updated
Last updated
You can insert .png and .jpeg images into your document, and you can adjust images width :
either glogally with the βforceWidthβ
parameter in the body of your JSON. Example : "forceWidth" : 200
, will apply a 200 pixels width to all the images in your document (height will adjust automatically)
or individually for any individual image, by sending a β.setImageWidthβ
parameter in your data (see example below)
In order to insert an image into your document, you have to send the image URL in your data
You can also set the image width (in pixels) by adding a .setImageWidth
parameter, as shown below:
Data
In the template, an image tag is like a substitution tag, but with an additional β%β sign:
Template |
| Result |
{%flower} |