PDF::FromHTML::Template::Element::Image
PDF::FromHTML::Template::Element
- FILENAME This is the filename for the image.
- TYPE If the image type is not specified in the filename, specify it
here.
- SCALE / W / H This is used to scale the image. SCALE is a value by which
the image's height and width will be multiplied to arrive at the final
height and width. Or, you can set W and or H, as the width (or height) you
want the image to have, once scaled.
The algorithm used to calculate scaling has changed, somewhat,
from v0.05. It should result in better calculations, as it tries more
avenues. Ultimately, if it cannot figure out what to do, it will set a
SCALE of 0.5 and go from there.
- BORDER This is a boolean, used to specify if you want to draw a border
around the image
- COLOR Ignored unless BORDER is specified. This is the color of the
border.
<image filename="$Image1"/>
<image><var name="Image1"/></image>
In both cases, the image specified by the parameter
"Image1" will be placed at the current X/Y position.
Rob Kinyon (rkinyon@columbus.rr.com)