Getting a Stack Overflow Exception generating a PDF [duplicate]
问题 This question already has an answer here : “'System.StackOverflowException” in “OnEndPage” event handler (1 answer) Closed 4 years ago . As a continuation to my earlier question I have been trying out the header and footer functions for my PDF. After a little discussion I have changed quite a lot of code on the PdfPageEventHelper class. Below is what I have: public class ReportHeaderFooter : PdfPageEventHelper { public string HeaderTitle { get; set; } public IReportsAccessor ReportsAccessor {