{
    "content": [
        {
            "type": "text",
            "text": "# HTML::FormatRTF (perldoc)\n\n## NAME\n\nHTML::FormatRTF - Format HTML as RTF\n\n## SYNOPSIS\n\nuse HTML::FormatRTF;\nmy $outfile = \"test.rtf\";\nopen(RTF, \">$outfile\")\nor die \"Can't write-open $outfile: $!\\nAborting\";\nprint RTF HTML::FormatRTF->formatfile(\n'test.html',\n'fontnameheadings' => \"Verdana\",\n);\nclose(RTF);\n\n## DESCRIPTION\n\nHTML::FormatRTF is a class for objects that you use to convert HTML to RTF. There is currently\nno proper support for tables or forms.\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **SEE ALSO**\n- **INSTALLATION**\n- **BUGS AND LIMITATIONS**\n- **AVAILABILITY**\n- **AUTHORS**\n- **COPYRIGHT AND LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "HTML::FormatRTF",
        "section": "",
        "mode": "perldoc",
        "summary": "HTML::FormatRTF - Format HTML as RTF",
        "synopsis": "use HTML::FormatRTF;\nmy $outfile = \"test.rtf\";\nopen(RTF, \">$outfile\")\nor die \"Can't write-open $outfile: $!\\nAborting\";\nprint RTF HTML::FormatRTF->formatfile(\n'test.html',\n'fontnameheadings' => \"Verdana\",\n);\nclose(RTF);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 72,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "INSTALLATION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "BUGS AND LIMITATIONS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AVAILABILITY",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENSE",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "HTML::FormatRTF - Format HTML as RTF\n",
                "subsections": []
            },
            "VERSION": {
                "content": "version 2.12\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use HTML::FormatRTF;\n\nmy $outfile = \"test.rtf\";\nopen(RTF, \">$outfile\")\nor die \"Can't write-open $outfile: $!\\nAborting\";\n\nprint RTF HTML::FormatRTF->formatfile(\n'test.html',\n'fontnameheadings' => \"Verdana\",\n);\nclose(RTF);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "HTML::FormatRTF is a class for objects that you use to convert HTML to RTF. There is currently\nno proper support for tables or forms.\n\nThis is a subclass of HTML::Formatter, whose documentation you should consult for more\ninformation on underlying methods such as \"new\", \"format\", \"formatfile\" etc\n\nYou can specify any of the following parameters in the call to \"new\", \"formatfile\", or\n\"formatstring\":\n\nlm  Amount of *extra* indenting to apply to the left margin, in twips (*tw*ent*i*eths of a\n*p*oint). Default is 0.\n\nSo if you wanted the left margin to be an additional half inch larger, you'd set \"lm => 720\"\n(since there's 1440 twips in an inch). If you wanted it to be about 1.5cm larger, you'd set\n\"lw => 850\" (since there's about 567 twips in a centimeter).\n\nrm  Amount of *extra* indenting to apply to the left margin, in twips (*tw*ent*i*eths of a\n*p*oint). Default is 0.\n\nnormalhalfpointsize\nThis is the size of normal text in the document, in *half*-points. The default value is 22,\nmeaning that normal text is in 11 point.\n\nheaderhalfpointsize\nThis is the size of text used in the document's page-header, in *half*-points. The default\nvalue is 17, meaning that normal text is in 7.5 point. Currently, the header consists just\nof \"p. *pagenumber*\" in the upper-right-hand corner, and cannot be disabled.\n\nhead1halfpointsize ... head6halfpointsize\nThese control the font size of each heading level, in half-twips. For example, the default\nfor head3halfpointsize is 25, meaning that HTML \"<h3>...</h3>\" text will be in 12.5 point\ntext (in addition to being underlined and in the heading font).\n\ncodeblockhalfpointsize\nThis controls the font size (in half-points) of the text used for \"<pre>...</pre>\" text. By\ndefault, it is 18, meaning 9 point.\n\nfontnamebody\nThis option controls what font is to be used for the body of the text -- that is, everything\nother than heading text and text in pre/code/tt elements. The default value is currently\n\"Times\". Other handy values I can suggest using are \"Georgia\" or \"Bookman Old Style\".\n\nfontnamecode\nThis option controls what font is to be used for text in pre/code/tt elements. The default\nvalue is currently \"Courier New\".\n\nfontnameheadings\nThis option controls what font name is to be used for headings. You can use the same font as\nfontnamebody, but I prefer a sans-serif font, so the default value is currently \"Arial\".\nAlso consider \"Tahoma\" and \"Verdana\".\n\ndocumentlanguage\nThis option controls what Microsoft language number will be specified as the language for\nthis document. The current default value is 1033, for US English. Consult an RTF reference\nfor other language numbers.\n\nhrwidth\nThis option controls how many underline characters will be used for rendering a \"<hr>\" tag.\nIts default value is currently 50. You can usually leave this alone, but under some\ncircumstances you might want to use a smaller or larger number.\n\nnoprolog\nIf this option is set to a true value, HTML::FormatRTF will make a point of *not* emitting\nthe RTF prolog before the document. By default, this is off, meaning that HTML::FormatRTF\n*will* emit the prolog. This option is of interest only to advanced users.\n\nnotrailer\nIf this option is set to a true value, HTML::FormatRTF will make a point of *not* emitting\nthe RTF trailer at the end of the document. By default, this is off, meaning that\nHTML::FormatRTF *will* emit the bit of RTF that ends the document. This option is of\ninterest only to advanced users.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "HTML::Formatter, RTF::Writer\n",
                "subsections": []
            },
            "INSTALLATION": {
                "content": "See perlmodinstall for information and options on installing Perl modules.\n",
                "subsections": []
            },
            "BUGS AND LIMITATIONS": {
                "content": "You can make new bug reports, and view existing ones, through the web interface at\n<http://rt.cpan.org/Public/Dist/Display.html?Name=HTML-Format>.\n",
                "subsections": []
            },
            "AVAILABILITY": {
                "content": "The project homepage is <https://metacpan.org/release/HTML-Format>.\n\nThe latest version of this module is available from the Comprehensive Perl Archive Network\n(CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you, or see\n<https://metacpan.org/module/HTML::Format/>.\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "*   Nigel Metheringham <nigelm@cpan.org>\n\n*   Sean M Burke <sburke@cpan.org>\n\n*   Gisle Aas <gisle@ActiveState.com>\n",
                "subsections": []
            },
            "COPYRIGHT AND LICENSE": {
                "content": "This software is copyright (c) 2015 by Nigel Metheringham, 2002-2005 Sean M Burke, 1999-2002\nGisle Aas.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
                "subsections": []
            }
        }
    }
}