PDF::F...::Image(3pm)

πŸ“¦
version 0.34 Β· 2 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– PDF::F...::Image(3pm) πŸ’–

okay bestie, welcome to the User Contributed Perl Documentation glow-up of PDF::FromHTML::Template::Element::Image, which is PDF::F...::Image(3pm) if you're being brief about it. this is the lil page that teaches you how to embed images. slay. πŸŽ€


✨ NAME ✨

PDF::FromHTML::Template::Element::Image β€” to embed images πŸ–ΌοΈ


🌸 NODE NAME 🌸

IMAGE

like, that's what you call it in your template. periodt. πŸ’…


πŸ¦‹ INHERITANCE πŸ¦‹

PDF::FromHTML::Template::Element

it inherits from that. family tree moment. πŸ‘‘


πŸ’œ ATTRIBUTES πŸ’œ

  • FILENAME β€” this is the filename for the image. that's it, that's the whole vibe. πŸ“
  • TYPE β€” if the image type isn't already chillin' in the filename, you specify it here instead. 🏷️
  • SCALE / W / H β€” this is the whole scaling situation. SCALE is a value that the image's height and width both get multiplied by to land on 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 it's been scaled. ✨
heads up: the algorithm used to calculate scaling has changed, somewhat, from v0.05. it should result in better calculations, since 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. no cap. 😭
  • BORDER β€” this is a boolean, used to specify if you want a border drawn around the image. yes/no energy. ⭐
  • COLOR β€” ignored unless BORDER is specified. this is the color of the border. so like, don't bother unless you asked for the border, bestie. 🎨

🧚 CHILDREN 🧚

None

literally none. empty nest. πŸͺΉ


🌈 AFFECTS 🌈

Nothing


🫢 DEPENDENCIES 🫢

None


πŸ’… USAGE πŸ’…

  <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. that's the whole trick. it's giving effortless. πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

Rob Kinyon (rkinyon@columbus.rr.com)


πŸ“ SEE ALSO πŸ“

(that's it, that's the list β€” nothing else linked here, so go forth and embed responsibly πŸ’–)


and that's the tea, bestie β€” this iconic lil page is from perl v5.38.2, dated 2024-07-28, and it's PDF::F...::Image(3pm), so you know it's the real deal. bye bye, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from