SkillAgentSearch skills...

HtmlToRtfConverter

Parses html and converts it to rtf

Install / Use

/learn @NtFreX/HtmlToRtfConverter
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

HtmlToRtfConverter

This is for educational purposes and not fully functional

var rtfConverter = new RtfConverter();
var value = rtfConverter.Convert(html);

Or add custom styling

var rtfConverter = new RtfConverterBuilder()
    .Element(HtmlElementType.Pre, builder =>
        builder.FontSize(12.0f)
            .ForegroundColor(Color.Blue)
            .BackgroundColor(Color.AliceBlue))
    .Element(HtmlElementType.Blockquote, builder =>
        builder.FontSize(8f)
            .ForegroundColor(Color.Black)
            .BackgroundColor(Color.LightSlateGray)
            .HorizontalAligment(HorizontalAligment.Center))
    .BuildConverter();
        
var value = rtfConverter.Convert(html);

Supported html elements: div, p, ul, ol, li, strong, em, del, pre, blockquote, br

Supported styles: color, background-color

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated1y ago
Forks1

Languages

C#

Security Score

75/100

Audited on Jan 8, 2025

No findings