Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,5 @@ _UpgradeReport_Files/
Backup*/
UpgradeLog*.XML

*.DotSettings
*.DotSettings
/Source/.vs/
Binary file modified Build/NuGet.exe
Binary file not shown.
30 changes: 30 additions & 0 deletions Build/NuGet/HtmlRenderer.PdfSharp.Core.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>Polybioz.HtmlRenderer.PdfSharp.Core</id>
<version>1.0.0</version>
<title>HTML Renderer for PDF using PdfSharp</title>
<authors>Karel Hajek</authors>
<owners>Karel Hajek</owners>
<license type="file">LICENSE.txt</license>
<projectUrl>https://github.com/polybioz/HTML-Renderer-Core</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<summary>
HtmlRenderer.PdfSharp for .NET Core
</summary>
<description>
HtmlRenderer.PdfSharp.Core is a partial port of HtmlRenderer.PdfSharp for .NET Core
</description>
<copyright>José Manuel Menéndez Poo, Arthur Teplitzki</copyright>
<tags>html render renderer draw pdfsharp .NETCore</tags>
<repository url="https://github.com/polybioz/HTML-Renderer-Core" />
<dependencies>
<dependency id="PdfSharpCore" version="1.1.21"/>
</dependencies>
</metadata>
<files>
<file src="LICENSE.txt" />
<file src="..\Release\PdfSharpCore\netcoreapp2.1\HtmlRenderer.Core.dll" target="lib\netcoreapp2.1" />
<file src="..\Release\PdfSharpCore\netcoreapp2.1\HtmlRenderer.PdfSharp.Core.dll" target="lib\netcoreapp2.1" />
</files>
</package>
28 changes: 28 additions & 0 deletions Build/NuGet/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Copyright (c) 2009, José Manuel Menéndez Poo
Copyright (c) 2013, Arthur Teplitzki
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.

Neither the name of the menendezpoo.com, ArthurHub nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52 changes: 2 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,6 @@
HTML Renderer [![Build status](https://ci.appveyor.com/api/projects/status/cm8xpf8ebt3hyi3e)](https://ci.appveyor.com/project/ArthurHub/html-renderer)
HTML Renderer Core
=============

## Help Wanted
* Looking for a contributor(s) to take this project forward as I'm unable to continue supporting it.
* Contribute directly to the repository and update nuget packages.

#### Documentation, Discussion and Issue tracking is on [CodePlex](https://htmlrenderer.codeplex.com/).

**Cross framework** (WinForms/WPF/PDF/Metro/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 2.0 or higher**.

#### [Download](https://htmlrenderer.codeplex.com/releases/) the [Demo application](https://htmlrenderer.codeplex.com/wikipage?title=Demo%20application&referringTitle=Home) to explore HTML Renderer capabilities.

![Renderer.png](https://raw.githubusercontent.com/ArthurHub/HTML-Renderer/master/Art/demo_winforms.png)

### 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.
* 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.
* Supports .NET 2.0 or higher including Client Profile.
* Lightweight, just two DLLs (~300K).
* High performance and low memory footprint.
* Extendable and configurable.
* Powerful [Demo application](https://htmlrenderer.codeplex.com/wikipage?title=Demo%20application&referringTitle=Home) to explore and learn the library.

### WinForms/WPF 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](https://htmlrenderer.codeplex.com/wikipage?title=Image%20generation&referringTitle=Home).
* Create PDF document from HTML code snippets.

### NuGet packages
* [HtmlRenderer.WinForms](https://www.nuget.org/packages/HtmlRenderer.WinForms)
* [HtmlRenderer.WPF](https://www.nuget.org/packages/HtmlRenderer.WPF)
* [HtmlRenderer.Mono](https://www.nuget.org/packages/HtmlRenderer.Mono)
* [HtmlRenderer.PdfSharp](https://www.nuget.org/packages/HtmlRenderer.PdfSharp)
* [HtmlRenderer.Core](https://www.nuget.org/packages/HtmlRenderer.Core)
* [Polybioz.HtmlRenderer.PdfSharp.Core](https://www.nuget.org/packages/Polybioz.HtmlRenderer.PdfSharp.Core)

#### HTML Renderer on my blog
[TheArtOfDev / HTML Renderer](http://theartofdev.com/html-renderer/)
Loading