When converting html to PDF, we occasionally receive a StackOverflowException. Since we are running this process as part of a web application, it is causing a major impact to the ability of the site to run correctly. After researching the issue, I have located two cases which cause Apose to break:
A <p> tag surrounding an <img> tag. Example:
<p align="center">
<img src="/images/myimage.jpg" alt="my image" /> </p>
A <br> tag inside of an <a> tag. Example:
<a href="#link">Line 1<br />Line 2</a>
Because your code is obfuscated I didn't feel it was worth attaching the stack trace, however the error is thrown when we call Aspose.Pdf.Generator.Pdf.BindHTML(string html). I found this error to be quite easy to replicate once I identified the specific cases that can cause it, however since it is a stack overflow it is an unrecoverable error and it takes out the entire Application Pool when it happens. Is there a version of the DLL which has this issue resolved or are there are least a list of known error cases we can test for to prevent the error?