├── html.ico ├── html.png ├── Art ├── demo_mono.png ├── demo_pdf.png ├── demo_text.png ├── demo_wpf.png ├── demo_collage.png ├── demo_showcase.png ├── demo_textEdit.png ├── demo_tooltip.png ├── demo_winforms.png ├── demo_sampleForm.png └── demo_generateImage.png ├── Source ├── Demo │ ├── WPF │ │ ├── html.ico │ │ ├── fonts │ │ │ └── CustomFont.ttf │ │ ├── packages.config │ │ ├── GenerateImageWindow.xaml │ │ ├── ToolStripImageConverter.cs │ │ ├── SampleWindow.xaml.cs │ │ ├── App.xaml │ │ ├── HtmlRenderer.Demo.WPF.csproj │ │ ├── App.xaml.cs │ │ ├── SampleWindow.xaml │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── GenerateImageWindow.xaml.cs │ │ └── MainControl.xaml │ ├── WinForms │ │ ├── html.ico │ │ ├── packages.config │ │ ├── HtmlRenderer.Demo.WinForms.csproj │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── SampleForm.cs │ │ └── Program.cs │ ├── Common │ │ ├── Resources │ │ │ ├── code.png │ │ │ ├── form.png │ │ │ ├── pdf.png │ │ │ ├── chrome.png │ │ │ ├── font32.png │ │ │ ├── html32.png │ │ │ ├── image.png │ │ │ ├── Event16.png │ │ │ ├── browser.png │ │ │ ├── comment16.gif │ │ │ ├── delete16.gif │ │ │ ├── delete32.gif │ │ │ ├── formula32.png │ │ │ ├── image32.png │ │ │ ├── method16.gif │ │ │ ├── stopwatch.png │ │ │ ├── CustomFont.ttf │ │ │ ├── favorites32.png │ │ │ ├── property16.gif │ │ │ ├── web_pallete.gif │ │ │ └── Tooltip.html │ │ ├── TestSamples │ │ │ ├── 22.RTL.htm │ │ │ ├── 09.Inline.htm │ │ │ ├── 14.Iframes.htm │ │ │ ├── 06.External Image.htm │ │ │ ├── 08.White-space.htm │ │ │ ├── 04.Blockquotes.htm │ │ │ ├── 01.Header.htm │ │ │ ├── 03.Paragraphs.htm │ │ │ ├── 17.Languages.htm │ │ │ ├── 05.Images.htm │ │ │ ├── 11.LineHeight.htm │ │ │ ├── 16.Borders.htm │ │ │ ├── 18.Anchors.htm │ │ │ ├── 30.Misc.htm │ │ │ ├── 10.BlockInInline.htm │ │ │ ├── 02.Line break.htm │ │ │ ├── 21.Bullets.htm │ │ │ ├── 07.Background Image.htm │ │ │ └── 15.MaxWidth.htm │ │ ├── HtmlSample.cs │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── Samples │ │ │ ├── 06.Embeded video.htm │ │ │ ├── 20.About.htm │ │ │ ├── 08.Tooltip.htm │ │ │ ├── 01.History.htm │ │ │ └── 04.Links.htm │ │ └── Resources.cs │ └── Directory.Build.props ├── HtmlRenderer │ ├── Core │ │ ├── Utils │ │ │ ├── ImageLoad.png │ │ │ └── ImageError.png │ │ ├── Dom │ │ │ ├── Border.cs │ │ │ ├── CssUnit.cs │ │ │ ├── HoverBoxBlock.cs │ │ │ ├── CssSpacingBox.cs │ │ │ └── CssRectImage.cs │ │ └── Entities │ │ │ ├── HtmlRenderErrorType.cs │ │ │ ├── HtmlGenerationStyle.cs │ │ │ ├── HtmlRefreshEventArgs.cs │ │ │ ├── HtmlScrollEventArgs.cs │ │ │ ├── HtmlLinkClickedException.cs │ │ │ ├── CssBlockSelectorItem.cs │ │ │ ├── HtmlRenderErrorEventArgs.cs │ │ │ ├── HtmlLinkClickedEventArgs.cs │ │ │ └── LinkElementData.cs │ ├── Adapters │ │ ├── Entities │ │ │ ├── RDashStyle.cs │ │ │ ├── RFontStyle.cs │ │ │ ├── RMouseEvent.cs │ │ │ └── RKeyEvent.cs │ │ ├── RBrush.cs │ │ ├── RFontFamily.cs │ │ ├── RImage.cs │ │ ├── RPen.cs │ │ ├── RFont.cs │ │ ├── RGraphicsPath.cs │ │ ├── RContextMenu.cs │ │ └── RControl.cs │ └── HtmlRenderer.csproj ├── Directory.Build.props ├── SharedAssemblyInfo.cs ├── HtmlRenderer.WPF │ ├── Adapters │ │ ├── BrushAdapter.cs │ │ ├── ImageAdapter.cs │ │ ├── FontFamilyAdapter.cs │ │ ├── GraphicsPathAdapter.cs │ │ ├── PenAdapter.cs │ │ ├── ContextMenuAdapter.cs │ │ ├── ControlAdapter.cs │ │ └── FontAdapter.cs │ ├── RoutedEventArgs.cs │ ├── README.md │ └── HtmlRenderer.WPF.csproj ├── HtmlRenderer.PdfSharp │ ├── README.md │ ├── Adapters │ │ ├── FontFamilyAdapter.cs │ │ ├── BrushAdapter.cs │ │ ├── ImageAdapter.cs │ │ ├── XTextureBrush.cs │ │ ├── PenAdapter.cs │ │ ├── FontAdapter.cs │ │ └── GraphicsPathAdapter.cs │ ├── HtmlRenderer.PdfSharp.csproj │ └── Utilities │ │ └── Utils.cs └── HtmlRenderer.WinForms │ ├── Adapters │ ├── FontFamilyAdapter.cs │ ├── ImageAdapter.cs │ ├── BrushAdapter.cs │ ├── ContextMenuAdapter.cs │ ├── PenAdapter.cs │ ├── GraphicsPathAdapter.cs │ ├── ControlAdapter.cs │ └── FontAdapter.cs │ ├── MetafileExtensions.cs │ ├── README.md │ └── HtmlRenderer.WinForms.csproj ├── .gitattributes ├── LICENSE ├── .gitignore ├── README.md └── .github └── workflows └── build.yml /html.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/html.ico -------------------------------------------------------------------------------- /html.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/html.png -------------------------------------------------------------------------------- /Art/demo_mono.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Art/demo_mono.png -------------------------------------------------------------------------------- /Art/demo_pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Art/demo_pdf.png -------------------------------------------------------------------------------- /Art/demo_text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Art/demo_text.png -------------------------------------------------------------------------------- /Art/demo_wpf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Art/demo_wpf.png -------------------------------------------------------------------------------- /Art/demo_collage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Art/demo_collage.png -------------------------------------------------------------------------------- /Art/demo_showcase.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Art/demo_showcase.png -------------------------------------------------------------------------------- /Art/demo_textEdit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Art/demo_textEdit.png -------------------------------------------------------------------------------- /Art/demo_tooltip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Art/demo_tooltip.png -------------------------------------------------------------------------------- /Art/demo_winforms.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Art/demo_winforms.png -------------------------------------------------------------------------------- /Art/demo_sampleForm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Art/demo_sampleForm.png -------------------------------------------------------------------------------- /Source/Demo/WPF/html.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/WPF/html.ico -------------------------------------------------------------------------------- /Art/demo_generateImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Art/demo_generateImage.png -------------------------------------------------------------------------------- /Source/Demo/WinForms/html.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/WinForms/html.ico -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/code.png -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/form.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/form.png -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/pdf.png -------------------------------------------------------------------------------- /Source/Demo/WPF/fonts/CustomFont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/WPF/fonts/CustomFont.ttf -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/chrome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/chrome.png -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/font32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/font32.png -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/html32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/html32.png -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/image.png -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/Event16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/Event16.png -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/browser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/browser.png -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/comment16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/comment16.gif -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/delete16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/delete16.gif -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/delete32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/delete32.gif -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/formula32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/formula32.png -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/image32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/image32.png -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/method16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/method16.gif -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/stopwatch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/stopwatch.png -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/CustomFont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/CustomFont.ttf -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/favorites32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/favorites32.png -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/property16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/property16.gif -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/web_pallete.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/Demo/Common/Resources/web_pallete.gif -------------------------------------------------------------------------------- /Source/HtmlRenderer/Core/Utils/ImageLoad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/HtmlRenderer/Core/Utils/ImageLoad.png -------------------------------------------------------------------------------- /Source/HtmlRenderer/Core/Utils/ImageError.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/HEAD/Source/HtmlRenderer/Core/Utils/ImageError.png -------------------------------------------------------------------------------- /Source/Demo/Directory.Build.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | Arthur Teplitzki 4 | 1.5.1 5 | 6 | 7 | -------------------------------------------------------------------------------- /Source/Demo/WPF/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Source/Demo/WinForms/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /Source/HtmlRenderer/Core/Dom/Border.cs: -------------------------------------------------------------------------------- 1 | // "Therefore those skilled at the unorthodox 2 | // are infinite as heaven and earth, 3 | // inexhaustible as the great rivers. 4 | // When they come to an end, 5 | // they begin again, 6 | // like the days and months; 7 | // they die and are reborn, 8 | // like the four seasons." 9 | // 10 | // - Sun Tsu, 11 | // "The Art of War" 12 | 13 | namespace TheArtOfDev.HtmlRenderer.Core.Dom 14 | { 15 | /// 16 | /// Border types 17 | /// 18 | internal enum Border 19 | { 20 | Top, 21 | Right, 22 | Bottom, 23 | Left 24 | } 25 | } -------------------------------------------------------------------------------- /Source/Demo/Common/TestSamples/22.RTL.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
שלום עולם, יש ברבורים בעגם הזה
5 |
6 |
שלום עולם, יש ברבורים בעגם הזה
7 |
שלום עולם, יש ברבורים בעגם הזה
8 |
9 |
10 |
11 |
שלום עולם,hello world יש ברבורים בעגם הזה
12 |
13 |
שלום עולם, יש ברבורים בעגם הזה
14 |
שלום עולם, יש ברבורים בעגם הזה
15 |
16 |
17 | 18 | -------------------------------------------------------------------------------- /Source/Demo/Common/Resources/Tooltip.html: -------------------------------------------------------------------------------- 1 | HtmlPanel control showing HTML Renderer capabilities 2 | 3 | 4 | 7 | 11 | 12 |
5 | 6 | You can select html samples on the left or you can edit 8 |
9 | the HTML of any document using the editor on the bottom. 10 |
13 |
14 |
15 |
16 | This is an HtmlToolTip and it's very COOL!!!
17 | You can even click on the links! 18 |
-------------------------------------------------------------------------------- /Source/HtmlRenderer/Adapters/Entities/RDashStyle.cs: -------------------------------------------------------------------------------- 1 | // "Therefore those skilled at the unorthodox 2 | // are infinite as heaven and earth, 3 | // inexhaustible as the great rivers. 4 | // When they come to an end, 5 | // they begin again, 6 | // like the days and months; 7 | // they die and are reborn, 8 | // like the four seasons." 9 | // 10 | // - Sun Tsu, 11 | // "The Art of War" 12 | 13 | namespace TheArtOfDev.HtmlRenderer.Adapters.Entities 14 | { 15 | /// 16 | /// Specifies the style of dashed lines drawn with a object. 17 | /// 18 | public enum RDashStyle 19 | { 20 | Solid, 21 | Dash, 22 | Dot, 23 | DashDot, 24 | DashDotDot, 25 | Custom, 26 | } 27 | } -------------------------------------------------------------------------------- /Source/HtmlRenderer/Adapters/Entities/RFontStyle.cs: -------------------------------------------------------------------------------- 1 | // "Therefore those skilled at the unorthodox 2 | // are infinite as heaven and earth, 3 | // inexhaustible as the great rivers. 4 | // When they come to an end, 5 | // they begin again, 6 | // like the days and months; 7 | // they die and are reborn, 8 | // like the four seasons." 9 | // 10 | // - Sun Tsu, 11 | // "The Art of War" 12 | 13 | using System; 14 | 15 | namespace TheArtOfDev.HtmlRenderer.Adapters.Entities 16 | { 17 | /// 18 | /// Specifies style information applied to text. 19 | /// 20 | [Flags] 21 | public enum RFontStyle 22 | { 23 | Regular = 0, 24 | Bold = 1, 25 | Italic = 2, 26 | Underline = 4, 27 | Strikeout = 8, 28 | } 29 | } -------------------------------------------------------------------------------- /Source/Demo/Common/TestSamples/09.Inline.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | gitHub 5 |
6 |
7 |
8 | git Hub 9 |
10 |
11 |
12 | GitHub gitHub 13 |
14 |
15 | GitHub gitHub code 16 |
17 |
18 | Hello World 19 |
20 |
21 | Hello World 22 |
23 |
24 | Hello World 25 |
26 | 27 | -------------------------------------------------------------------------------- /Source/HtmlRenderer/Adapters/RBrush.cs: -------------------------------------------------------------------------------- 1 | // "Therefore those skilled at the unorthodox 2 | // are infinite as heaven and earth, 3 | // inexhaustible as the great rivers. 4 | // When they come to an end, 5 | // they begin again, 6 | // like the days and months; 7 | // they die and are reborn, 8 | // like the four seasons." 9 | // 10 | // - Sun Tsu, 11 | // "The Art of War" 12 | 13 | using System; 14 | 15 | namespace TheArtOfDev.HtmlRenderer.Adapters 16 | { 17 | /// 18 | /// Adapter for platform specific brush objects - used to fill graphics (rectangles, polygons and paths).
19 | /// The brush can be solid color, gradient or image. 20 | ///
21 | public abstract class RBrush : IDisposable 22 | { 23 | public abstract void Dispose(); 24 | } 25 | } -------------------------------------------------------------------------------- /Source/HtmlRenderer/Core/Entities/HtmlRenderErrorType.cs: -------------------------------------------------------------------------------- 1 | // "Therefore those skilled at the unorthodox 2 | // are infinite as heaven and earth, 3 | // inexhaustible as the great rivers. 4 | // When they come to an end, 5 | // they begin again, 6 | // like the days and months; 7 | // they die and are reborn, 8 | // like the four seasons." 9 | // 10 | // - Sun Tsu, 11 | // "The Art of War" 12 | 13 | namespace TheArtOfDev.HtmlRenderer.Core.Entities 14 | { 15 | /// 16 | /// Enum of possible error types that can be reported. 17 | /// 18 | public enum HtmlRenderErrorType 19 | { 20 | General = 0, 21 | CssParsing = 1, 22 | HtmlParsing = 2, 23 | Image = 3, 24 | Paint = 4, 25 | Layout = 5, 26 | KeyboardMouse = 6, 27 | Iframe = 7, 28 | ContextMenu = 8, 29 | } 30 | } -------------------------------------------------------------------------------- /Source/HtmlRenderer/Core/Dom/CssUnit.cs: -------------------------------------------------------------------------------- 1 | // "Therefore those skilled at the unorthodox 2 | // are infinite as heaven and earth, 3 | // inexhaustible as the great rivers. 4 | // When they come to an end, 5 | // they begin again, 6 | // like the days and months; 7 | // they die and are reborn, 8 | // like the four seasons." 9 | // 10 | // - Sun Tsu, 11 | // "The Art of War" 12 | 13 | namespace TheArtOfDev.HtmlRenderer.Core.Dom 14 | { 15 | /// 16 | /// Represents the possible units of the CSS lengths 17 | /// 18 | /// 19 | /// http://www.w3.org/TR/CSS21/syndata.html#length-units 20 | /// 21 | internal enum CssUnit 22 | { 23 | None, 24 | Ems, 25 | Pixels, 26 | Ex, 27 | Inches, 28 | Centimeters, 29 | Milimeters, 30 | Points, 31 | Picas 32 | } 33 | } -------------------------------------------------------------------------------- /Source/Directory.Build.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Arthur Teplitzki 5 | Arthur Teplitzki 6 | README.md 7 | BSD-3-Clause 8 | https://codeplexarchive.org/project/HtmlRenderer 9 | html.png 10 | false 11 | See https://github.com/ArthurHub/HTML-Renderer/releases. 12 | 1.5.2-dev 13 | false 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Source/Demo/WPF/GenerateImageWindow.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 |