PDF::FromHTML::Template::Element::Image - PDF::FromHTML::Template::Element::Image documentation


PDF-FromHTML documentation  | view source Contained in the PDF-FromHTML distribution.

Index


NAME

Top

PDF::FromHTML::Template::Element::Image

PURPOSE

Top

To embed images

NODE NAME

Top

IMAGE

INHERITANCE

Top

PDF::FromHTML::Template::Element

ATTRIBUTES

Top

* 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.

CHILDREN

Top

None

AFFECTS

Top

Nothing

DEPENDENCIES

Top

None

USAGE

Top

  <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.

AUTHOR

Top

Rob Kinyon (rkinyon@columbus.rr.com)

SEE ALSO

Top


PDF-FromHTML documentation  | view source Contained in the PDF-FromHTML distribution.