Aspose.HTML for .NET 22.6 Release Notes
Contents
[
Hide
Show
]This page contains release notes information for Aspose.HTML for .NET 22.6.
As per regular monthly update process of all APIs being offered by Aspose, we are honored to announce the June release of Aspose.HTML for .NET.
In this release, we have improved various parts of the parsing and rendering algorithms, here are some of them:
- Fixed the memory usage issue.
- Improved JS and AngularJS applications processing.
- Improved processing of the box-sizing property.
- Improved the rendering and page splitting layout algorithms.
Improvements and Changes
Key | Summary | Category |
---|---|---|
HTMLNET-3839 | Reggresion: HTML to JPEG: Text gets rendered off the image in the top-left | Bug |
Public API and Backward Incompatible Changes
Added APIs
1namespace Aspose.Html.Drawing
2{
3 /// <summary>
4 /// Declare methods for color conversions
5 /// </summary>
6 public interface IConvertibleColor
7 {
8 /// <summary>
9 /// Convert to CMYK color in the percentage format: cmyk(0%,0%,0%,0%)
10 /// </summary>
11 /// <returns>CMYK color string</returns>
12 string ToCmykString();
13
14 /// <summary>
15 /// Convert to CMYK color in the decimal format: cmyk(0,0,0,0)
16 /// </summary>
17 /// <returns>CMYK color string</returns>
18 string ToCmykStringDecimal();
19
20 /// <summary>
21 /// Convert to HEX color in the format: #000000
22 /// </summary>
23 /// <returns>HEX color string</returns>
24 string ToHexString();
25
26 /// <summary>
27 /// Convert to HSLA color in the format: hsla(0,0%,0%,0)
28 /// </summary>
29 /// <returns>HSLA color string</returns>
30 string ToHslaString();
31
32 /// <summary>
33 /// Convert to HSL color in the format: hsla(0,0%,0%)
34 /// </summary>
35 /// <returns>HSL color string</returns>
36 string ToHslString();
37
38 /// <summary>
39 /// Convert to HSL color in the decimal format: hsl(0,0,0)
40 /// </summary>
41 /// <returns>HSL color string</returns>
42 string ToHslStringDecimal();
43
44 /// <summary>
45 /// Convert to HWBA color in the format: hwba(0,0%,0%,0)
46 /// </summary>
47 /// <returns>HWBA color string</returns>
48 string ToHwbaString();
49
50 /// <summary>
51 /// Convert to HWB color in the format: hwb(0,0%,0%)
52 /// </summary>
53 /// <returns>HWB color string</returns>
54 string ToHwbString();
55
56 /// <summary>
57 /// Convert to HWB color in the decimal format: hwb(0,0,0)
58 /// </summary>
59 /// <returns>HWB color string</returns>
60 string ToHwbStringDecimal();
61
62 /// <summary>
63 /// Convert to the Named color
64 /// </summary>
65 /// <returns>Named color string</returns>
66 string ToName();
67
68 /// <summary>
69 /// Convert to the Natural color (NCola) in the percentage format with alpha channel
70 /// </summary>
71 /// <returns>Natural color string</returns>
72 string ToNcolaString();
73
74 /// <summary>
75 /// Convert to the Natural color (NCol) in the percentage format
76 /// </summary>
77 /// <returns>Natural color string</returns>
78 string ToNcolString();
79
80 /// <summary>
81 /// Convert to the Natural color (NCol) in the decimal format
82 /// </summary>
83 /// <returns>Natural color string</returns>
84 string ToNcolStringDecimal();
85
86 /// <summary>
87 /// Convert to the RGBA color
88 /// </summary>
89 /// <returns>RGBA color string</returns>
90 string ToRgbaString();
91
92 /// <summary>
93 /// Convert to the RGB color
94 /// </summary>
95 /// <returns>RGB color string</returns>
96 string ToRgbString();
97
98 /// <summary>
99 /// Convert to LCH color in the percentage format: lch(0%,0%,0%)
100 /// </summary>
101 /// <returns>LCH color string</returns>
102 string ToLchString();
103
104 /// <summary>
105 /// Convert to LCH color in the decimal format: lch(0,0,0)
106 /// </summary>
107 /// <returns>LCH color string</returns>
108 string ToLchStringDecimal();
109
110 /// <summary>
111 /// Convert to OKLCH color in the percentage format: oklch(0%,0%,0%)
112 /// </summary>
113 /// <returns>OKLCH color string</returns>
114 string ToOkLchString();
115
116 /// <summary>
117 /// Convert to OKLCH color in the decimal format: oklch(0,0,0)
118 /// </summary>
119 /// <returns>OKLCH color string</returns>
120 string ToOkLchStringDecimal();
121
122 /// <summary>
123 /// Convert to LAB color in the percentage format: lab(0%,0%,0%)
124 /// </summary>
125 /// <returns>LAB color string</returns>
126 string ToLabString();
127
128 /// <summary>
129 /// Convert to LAB color in the decimal format: lab(0,0,0)
130 /// </summary>
131 /// <returns>LAB color string</returns>
132 string ToLabStringDecimal();
133
134 /// <summary>
135 /// Convert to OKLAB color in the percentage format: oklab(0%,0%,0%)
136 /// </summary>
137 /// <returns>OKLAB color string</returns>
138 string ToOkLabString();
139
140 /// <summary>
141 /// Convert to OKLAB color in the decimal format: oklab(0,0,0)
142 /// </summary>
143 /// <returns>OKLAB color string</returns>
144 string ToOkLabStringDecimal();
145 }
146}
147
148namespace Aspose.Html.Converters
149{
150 /// <summary>
151 ///The ColorConverter class parses colors (RGB, HEX, HSL, HWB, CMYK, NCOL, LCH, OKLCH, LAB, OKLAB) from a string and returns the <see cref="IConvertibleColor"/> interface for converting to various color spaces.
152 /// </summary>
153 public static class ColorConverter
154 {
155 /// <summary>
156 /// Parses color from string representation and returns the <see cref="IConvertibleColor"/> interface to convert it to various color spaces.
157 /// </summary>
158 /// <param name="color">color string.</param>
159 /// <returns><see cref="IConvertibleColor"/> interface.</returns>
160 public static IConvertibleColor ConvertFrom(string color)
161 }
162}
163
164namespace Aspose.Html
165{
166 /// <summary>
167 /// The anchor element. See the A element definition in HTML 4.01.
168 /// <para>See also the <a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>Document object Model (DOM) Level 2 HTML Specification</a>.
169 /// </para>
170 /// </summary>
171 public class HTMLAnchorElement : HTMLElement
172 {
173 /// <summary>
174 /// Returns a live DOMTokenList which contains tokens received from parsing the "rel" attribute.
175 /// </summary>
176 public DOMTokenList RelList { get; }
177
178 /// <summary>
179 /// Gets a string representation of the origin segment of the associated URL.
180 /// </summary>
181 public string Origin { get; }
182
183 /// <summary>
184 /// Gets or sets a string representation of the scheme segment of the associated URL.
185 /// </summary>
186 public string Protocol { get; set; }
187
188 /// <summary>
189 /// Gets or sets a string representation of the username segment of the associated URL.
190 /// </summary>
191 public string Username { get; set; }
192
193 /// <summary>
194 /// Gets or sets a string representation of the password segment of the associated URL.
195 /// </summary>
196 public string Password { get; set; }
197
198 /// <summary>
199 /// Gets or sets a string representation of the host and port segments of the associated URL.
200 /// </summary>
201 public string Host { get; set; }
202
203 /// <summary>
204 /// Gets or sets a string representation of the host segment of the associated URL.
205 /// </summary>
206 public string Hostname { get; set; }
207
208 /// <summary>
209 /// Gets or sets a string representation of the port segment of the associated URL.
210 /// </summary>
211 public string Port { get; set; }
212
213 /// <summary>
214 /// Gets or sets a string representation of the path segment of the associated URL.
215 /// </summary>
216 public string Pathname { get; set; }
217
218 /// <summary>
219 /// Gets or sets a string representation of the search segment of the associated URL.
220 /// </summary>
221 public string Search { get; set; }
222
223 /// <summary>
224 /// Gets or sets a string representation of the hash segment of the associated URL.
225 /// </summary>
226 public string Hash { get; set; }
227
228 /// <summary>
229 /// Releases unmanaged and - optionally - managed resources.
230 /// </summary>
231 /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
232 protected override void Dispose(bool disposing)
233
234 }
235
236 /// <summary>
237 /// Client-side image map area definition. See the AREA element definition in
238 /// HTML 4.01.
239 /// <para>See also the <a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>Document object Model (DOM) Level 2 HTML Specification</a>.
240 /// </para>
241 /// </summary>
242 public class HTMLAreaElement : HTMLElement
243 {
244 /// <summary>
245 /// Returns a live DOMTokenList which contains tokens received from parsing the "rel" attribute.
246 /// </summary>
247 public DOMTokenList RelList { get; }
248 }
249
250 /// <summary>
251 /// The <c>LINK</c> element specifies a link to an external resource, and
252 /// defines this document's relationship to that resource (or vice versa).
253 /// See the LINK element definition in HTML 4.01 (see also the
254 /// <c>LinkStyle</c> interface in the StyleSheet module [<a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>DOM Level 2 Style Sheets and CSS</a>]).
255 /// <para>See also the <a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>Document object Model (DOM) Level 2 HTML Specification</a>.
256 /// </para>
257 /// </summary>
258 public class HTMLLinkElement : HTMLElement, ILinkStyle
259 {
260 /// <summary>
261 /// Returns a live DOMTokenList which contains tokens received from parsing the "rel" attribute.
262 /// </summary>
263 public DOMTokenList RelList { get; }
264 }
265}