Mail::M...ormatPS(3)
π Mail::Message::Convert::HtmlFormatPS π
okay bestie, so like. this is Mail::Message::Convert::HtmlFormatPS, a lil Perl module from the Mail::Message family, and its whole personality is: take an HTML/XHTML message body and turn it into PostScript. yes. actual PostScript. it's giving printer-friendly. π
π INHERITANCE
the family tree, periodt:
Mail::Message::Convert::HtmlFormatPS
is a Mail::Message::Convert
is a Mail::Reporter
so it's a Mail::Message::Convert, which is a Mail::Reporter. iconic lineage honestly. π
β¨ SYNOPSIS
here's the whole vibe in four lines, no cap:
use Mail::Message::Convert::HtmlFormatPS;
my $af = Mail::Message::Convert::HtmlFormatPS->new;
my $postscript = $af->format($body);
make the object, call format, get PostScript back. that's it. that's the whole thing. slay. π
π¦ DESCRIPTION
okay so what it does: it translates an HTML/XHTML message body into a postscript body, and it does that by using HTML::FormatPS. π«Ά
also it extends "DESCRIPTION" in Mail::Message::Convert β so go read that one too, bestie, it's the parent lore.
π METHODS
and yes, it extends "METHODS" in Mail::Message::Convert. πΈ
π Constructors
extends "Constructors" in Mail::Message::Convert, obvi.
$class->new(%options)β builds you a shiny new converter. here's the tea: any%optionsthat start with capitals get blindly passed straight through toHTML::FormatPS. not filtered, not checked, just yeeted on over. and as of this writing, that package defines these ones:BottomMargin,FontFamily,FontScale,HorizontalMargin,Leading,LeftMargin,PageNo,PaperHeight,PaperSize,PaperWidth,RightMargin,TopMargin, andVerticalMargin. β¨
it improves base, so also see "Constructors" in Mail::Reporter.
and here's the option table, exactly as it stands:
-Option--Defined in --Default
fields Mail::Message::Convert <not used>
so like, fields comes from Mail::Message::Convert and its default is <not used>.
fields => $name|$regex|\@names|\@regexesβ that's how you feed thefieldsoption. one name, or a regex, or arrayrefs of names, or arrayrefs of regexes. your choice, main character. π
π§ Attributes
extends "Attributes" in Mail::Message::Convert. nothing extra listed here, it's just vibing off the parent. π«
π₯ Converting
extends "Converting" in Mail::Message::Convert.
$obj->format($body)β pass in an html or xhtml encoded body and a plain text body is returned. and heads up: characters are translated into Latin1. π$obj->selectedFields($head)β inherited, so go see"Converting"in Mail::Message::Convert for the details. π
π Error handling
extends "Error handling" in Mail::Message::Convert.
$obj->AUTOLOAD()β inherited, see"Error handling"in Mail::Reporter.$obj->notImplemented()β inherited, see"Error handling"in Mail::Reporter.
π Cleanup
extends "Cleanup" in Mail::Message::Convert.
$obj->DESTROY()β inherited, see"Cleanup"in Mail::Reporter. rip to the object, but like, in a healthy way. π
π DIAGNOSTICS
- Error: class $package does not implement method $method. β this one is a fatal error. so the specific
$package(or one of its superclasses) does not implement this method where it should. what that means: some other related classes do implement this method, but the class you're holding right now does not. you should probably investigate this, and probably inform the author of the package. cast bynotImplemented(). π«
β SEE ALSO
this module is part of Mail-Message version 4.04, built on February 04, 2026. website: http://perl.overmeer.net/CPAN/ π
π LICENSE
for contributors, see file ChangeLog. π
this software is copyright (c) 2001-2026 by Mark Overmeer.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. fr fr. π«Ά
and that's a wrap bestie β this page came to you from perl v5.42.0, dated 2026-02-05, and it's the manpage for Mail::M...ormatPS(3). go convert something. mwah. π β¨
π¦ where this page comes from
- fedora 44: perl-Mail-Message 4.04-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms