What’s new in aspNetMHT v2
aspNetMHT v2 has been in development for almost 2 years. During that time frame we've had multiple customer requests. Many of these new features are directly related to those requests. If you ever see a MHT need, that aspNetMHT does not fulfill, we would love to hear about it. Be sure to send all feature suggestions to email@example.com
aspNetMHT exposes some new events for more granular control. The most useful will probably be the BeforeParseMHTPart event. This event is raised before the MHTPart is parsed, allowing the developer to control different aspects of the part.
New, easier to use Methods
Some new static methods have been exposed, allowing you to create MHT documents in a single line of code.
aspNetMHT now supports the capability to add attachments to the MHT document. This is especially useful in those instances where you need to add PDFs to your MHT documents.
New Extractor Support
aspNetMHT now provides the capability to extract a MHT document into it’s individual parts. This allows you to take an existing MHT document, and convert it back into all it’s individual pieces, and still have all the links work correctly.
Better CSS Support
There have been numerous enhancements in this area. Some where minor, but some were quite major. They include, better support for the data: format. Better handling of style tags. Better processing of @import statements. Especially nested @import statements.
More Utility Methods
aspNetMHT now has the capability to decode GZip compressed data coming over Http.
Better Local Filesystem Support
aspNetMHT can better parse local Html sources. Especially better support for UNC (\\server name\\share name) referenced content such as images.
Better Image Detection Support
aspNetMHT now has better image detection support, to better recognize images that may be mis-labeled by the server.
Better Encoding Support
aspNetMHT provides the developer with more Html encoding options, for more granular control.