ArthurHub/HTML-Renderer
关于
跨框架(WinForms/WPF/PDF/Metro/Mono 等)、多用途(UI 控件、图像生成、PDF 生成等)、100% 托管(C#)的高性能 HTML 渲染库。
设计与媒体可以做什么
- Extensive HTML 4.01 and CSS level 2 specifications support.
- Support separating CSS from HTML by loading stylesheet code separately.
- Support text selection, copy-paste and context menu.
- WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +5
- 1个月
- +3
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文HTML Renderer
Cross framework (WinForms/WPF/WinUI/PDF/Mono/etc.), Multipurpose (UI Controls / Image generation / PDF generation / etc.), 100% managed (C#), High performance HTML Rendering library.
The library is 100% managed C# code without any external dependencies (no WebBrowser control, ActiveX / COM or MSHTML dll), the only requirement is .NET Standard 2.0 / .NET 10.0 or higher.

Issues & Documentation
For questions and issues, use the official GitHub repository.
For documentation, check out the project on the CodePlex Archive or the personal blog.
Download
The release packages on GitHub also contain a Demo application to explore HML Renderer's capabilities.
The latest NuGet packages can be found on NuGet.org:
Features and Benefits
- Extensive HTML 4.01 and CSS level 2 specifications support.
- Support separating CSS from HTML by loading stylesheet code separately.
- Support text selection, copy-paste and context menu.
- WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
- WPF controls: HtmlPanel and HtmlLabel.
- WinUI 3 controls: HtmlPanel and HtmlLabel.
- Works on Mono.
- Create images/PDFs from HTML snippets.
- Handles "real world" malformed HTML, it doesn't have to be XHTML.
- 100% managed code and no external dependencies.
- Lightweight, just two DLLs (~300K).
- High performance and low memory footprint.
- Extendable and configurable.
- Powerful Demo application to explore and learn the library.
WinForms/WPF/WinUI controls
- HtmlPanel - The full power of HTML control build to replace WebBrowser control, accepts HTML, text selection, scrollbars, link click intercept, image load intercept and much more.
- HtmlLabel - As WinForms label but accepts HTML, text selection, auto-size capabilities, transparent background and more.
- HtmlToolTip - As WinForms ToolTip control but accepts HTML and ability to handle links (WinForms only).
Sample application's
- Render HTML content generated by rich web editors like forums, blogs, etc.
- Render Office documents converted to HTML.
- Create WinForms UI that requires text selection with clipboard support.
- Create images from HTML code snippets.
- Create PDF document from HTML code snippets.
探索相关项目
加载中…