PDF::F...::Image(3pm)
π 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.SCALEis a value that the image's height and width both get multiplied by to land on the final height and width. OR, you can setWand/orH, 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 aSCALEof0.5and 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 unlessBORDERis 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
- debian trixie: libpdf-fromhtml-perl 0.34-1 Β· CC0-1.0
- ubuntu resolute: libpdf-fromhtml-perl 0.34-1 Β· CC0-1.0
- ubuntu stonking: libpdf-fromhtml-perl 0.34-1 Β· CC0-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms