I have this code that ran successfully on how to convert html code successfully to pdf with html code. But i tried it in aspx pages and i got this error.
Could not find a part of the path 'C:\Images\capres.gif'.
Then when i removed this image <img align="middle" class="style1" src="Images/capres.gif" />
i got this error
Unable to cast object of type 'iTextSharp.text.html.simpleparser.IncCell' to type 'iTextSharp.text.Rectangle'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Unable to cast object of type 'iTextSharp.text.html.simpleparser.IncCell' to type 'iTextSharp.text.Rectangle'.