Skip to content

Releases: ArthurHub/HTML-Renderer

1.5.2

22 Dec 21:03

Choose a tag to compare

Minor fixes before approaching the third phase of the roadmap (#219).

  • Replace deprecated WPF overloads (#229)
  • Do not inherit "vertical-align" (#231)
  • Fixed IndexOutOfRange (#232)
  • Fix anchorPageidx in the PDF generator (#233)

1.5.1

12 Dec 15:51

Choose a tag to compare

After ~8 years of no new release / NuGet package, it's time to finally bring this project out of the "beta" phase. 🎉

Note

Since .NET has evolved a lot in the past decade, some changes on the supported targets have been made, see also the Deprecation section below.

Fixes & Changes

  • Fix for the last attribute without a value crashing the parser
  • Convert code points from other unicode planes to utf16, like emoticons 😃, and avoid a hard unhandled exception.
  • Fix a typo in RoutedEvenArgs.cs
  • Removed System.Windows.Forms dependency in WPF nuspec file
  • Fix for combining bold with italic in WPF
  • Fixes an error where a WebException would be "randomly" thrown when downloading an image
  • Update dependencies (#220)
    • Extended.Wpf.Toolkit: 2.2.1 -> 5.0.0
    • PDFsharp: 1.50.4000-beta3b -> 1.50.5147
    • System.Resources.Extensions: 4.6.0 -> 10.0.0
  • Update all links (#216)
  • Add GitHub Actions builds including Trusted Publishing (#218, #226)
  • Fix Text blurry (#92 / #105)
  • Fix FontFamilyAdapter to respect system locale (#120 / #213)
  • Fix YouTube & Vimeo video embedding (#223)
  • Support for case sensitive html entities (#117 / #118)
  • Fixed issue where parsing font values with trailing commas (#94 / #96)

Deprecation

.NET has come along way since the early 2014 when HTML Renderer 1.5.x was started, as such support for old .NET Framework versions and client profiles are deprecated and removed.

This release targets .NET Framework 4.6.2, which is still supported by Microsoft and is compatible with any newer .NET Framework version.

Mono has been largely merged into the .NET runtime and while it continues to be maintained by the wine team, there's little point in maintaining a separate package. The goal is to move to .NET Standard 2.0 / .NET 8 / .NET 10 with the next release. See the Roadmap for more details

1.5.1-beta1

09 Dec 07:56

Choose a tag to compare

1.5.1-beta1 Pre-release
Pre-release
  • Paging support in PDF added by
  • Fix AddFontFamily(new FontFamilyAdapter(family)); fail by a limited font.
  • Enabled saving HTML as EMF file (vector image)
  • Support base64 images in css content property
  • Added paging support for pdf
  • Fixed rendering in WPF
  • Fixing words being cut on page breaks

1.5.0.6

09 Dec 07:53

Choose a tag to compare

  • Fix sub, sup style not working
  • Bugfix in CssLayoutEngine.ApplyCenterAlignment and CssLayoutEngine.ApplyRightAlignment
  • Fix of memory leak with Hover boxes inside HtmlContainerInt.
  • Correct hoverboxes releasing fix
  • use CharSet = CharSet.Unicode for all text pInvoke functions
  • safeguard image generation width to 4096 pixels unless max width is provided
  • Bugfix in CssLayoutEngine where an exception was thrown
  • minor optimization, test sample for layout center with fixed size width
  • Make GetColorInt check if color name is valid to avoid ColorConverter throwing an exception
  • Changes to allow custom sizes if these are not defined in PageSize
  • ColorConverter exception prevention
  • Call base.OnMouseUp instead of base.OnMouseClick from HtmlPanel.OnMouseUp
  • OnMouseUp should call base.OnMouseUp instead of base.OnMouseClick in HtmlLabel.cs
  • Added ability to set page orientation for PdfSharp

1.5.0.5

09 Dec 07:47

Choose a tag to compare

  • Add clear selection
  • Fix possible endless loop in CorrectRelativeUrls
  • Minor CorrectRelativeUrls fix
  • Handle table center/right alignment
  • Add LoadComplete event on when set HTML if fully parsed and layouted

1.5.0.4

09 Dec 07:23

Choose a tag to compare

  • Fix casing issue
  • Fix rounding issue with mono

1.5.0.3

09 Dec 07:22

Choose a tag to compare

  • Handle image download synchronizations issues
  • Update documentation
  • Automate builds

1.5.0.2

09 Dec 07:20

Choose a tag to compare

  • Fixes for mono
  • Refactor mono CreateGraphics handling
  • Improve image downloading handling
    • Fix collision of downloading the same image
    • Don't cache failed or partial image downloads responses

1.5.0.1

09 Dec 07:16

Choose a tag to compare

  • Add missing words
  • Add missing references

1.5.0

09 Dec 07:14

Choose a tag to compare

Features

  • Multi-framework support
    • WinForms
    • WPF
    • Mono
    • PdfSharp
  • WPF
    • Native - no WinForms interop or hacks
    • Native WPF controls (HtmlPanel, HtmlLabel)
    • Feature parity with WinForms
    • Dependency property and routed events
    • Excellent performance
  • Mono
    • Subset to WinForms HtmlRenderer
    • GdiPlus text rendering only
  • PdfSharp
    • Text selection
    • Links and anchors
  • Extensibility support for other frameworks using Core library
    • Silverlight
    • Metro (Win8/Windows RT/Windows Phone)
    • Xamarin (iOS/Android)
    • Unity/XNA (gaming)
  • Split library into core assembly and additional assembly for each framework
    • Core - dependency only on System
    • WinForms
    • WPF
    • PdfSharp
  • Object model minor changes and namespace changes
  • Demo application
    • Improve WinForms demo to show image and PDF generation
    • WinForms demo build that work on Mono
    • Full WPF demo application
  • Change build script to batch file
  • Added clear current selection method
  • Added LoadComplete event on when set html if fully parsed and layouted

Fixes

  • Fix table center/right alignment
  • Fix sub, sup style text handling.
  • Fix possible infinite loop in CorrectRelativeUrls
  • Improve image downloading handling
    • Fix collision of downloading the same image
    • Don't cache failed or partial image downloads responses
    • Synchronization issues
  • Padding support on HtmlLabel and HtmlPanel controls
  • URL attributes with double quotes are not processed correctly (thx Richard)
  • Fix html clearing not resetting ActualSize
  • Height calculation trimming last pixel
  • Fix actual width calculation when location.X is set
  • Fix WinForms horizonal scroll content clipping
  • Fix high CPU usage while holding mouse down (thx Ryan)
  • Handle possibility of no requested style exists for the font, use regular then
  • Fix table cell width calculation too small when using multiple blocks with whitespaces
  • Fix styles parsing for html and * wildcard
  • Removed default body style (10pt Tahoma)