Somebody set us up the
google!!
RTF::Document
documentation
Code Sample from POD :
use RTF::Document;
# Document properties
$rtf = new RTF::Document(
{
doc_page_width => '8.5in',
doc_page_height => '11in'
}
);
$rtf->add_text( $rtf->root(),
"Default text\n\n",
{ bold=>1, underline=>continuous },
"Bold/Underlined Text\n\n",
{ font_size=>'20pt', font=>$fCourier,
color_foreground=>$cRed },
"Bigger, Red and Monospaced.\n\n",
{ style_default=>paragraph },
{ style_default=>character },
"This is ",
[ { style=>$sGreen }, "green" ],
" styled.\n\n"
but, it doesn't appear to be in CPAN, so it could set your computer on fire, or sell guns to kids. If you find a pile of ashes where your computer was, or if a 5 year old shoots you, don't blame me...
Actually, it looks pretty complete. But I had to throw in the warning.
Update 28MAR2001 this module's in CPAN now. Its documentation still appears to be missing.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.