image
Contents
[
Hide
]
This element is used to add a picture.
Syntax
The element is declared with ?image=<image file name>
statement. This statement must be placed on a separate line.
All images used in the form must be provided when generating a template.
Check the size and proportions of the image before adding it to the form. Very large images may break the layout.
Attributes
The image element can be customized by adding optional attributes to it.
An attribute is written as [attribute_name]=[value]
. Each attribute must be placed on a new line immediately after the opening ?image=
statement or another attribute, and must begin with a tab character.
Attribute | Default value | Description | Usage example |
---|---|---|---|
width | Original image width | Image width, in pixels. Smaller or larger images will be resized. | width=640 |
height | Original image height | Image height, in pixels. Smaller or larger images will be resized. | height=480 |
x | n/a | Set the absolute position of the image relative to the left edge of the page. Overrides the value of align attribute. |
x=300 |
y | n/a | Set the absolute position of the image relative to the top edge of the page. | y=500 |
align | left | Horizontal image alignment: left , center or right . |
align=center |
Allowed child elements
None.
Example
?image=logo.jpg
align=center
?empty_line=
?text=Aspose.OMR Cloud
align=center
font_size=24