This exception occurs in 23.12 when processing a blockquote with nested spans and a newline character.
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: count
public void ArgumentOutOfRangeException()
{
const string html = "<html><body><blockquote><p><span>\n<span>xxx</span>xxxxxxxxxxxxxxxxxxxxxxxxxxx x</span><span>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</span></p></blockquote></body></html>";
using (var document = new Aspose.Html.HTMLDocument(html, "."))
Aspose.Html.Converters.Converter.ConvertHTML(document, new PdfSaveOptions(), "out.pdf");
}