I am looping the below shortened Code for more than 1000 Employees. Process gets very slow due to the Last line in below Code. It is taking more time to generate a single PDF for each Employee.
string headerContents = "<div style='font-family:Times-roman;padding: 0px 0px 0px 1px;'>";
headerContents += headDesign;
headerContents += "</div><br/><br/><br/><br/>";
StringReader sr = new StringReader(headerContents);
XMLWorkerHelper.GetInstance().ParseXHtml(writer, document, sr);
I searched it but didn't get any specific solution for the Slowness. Please can anyone share some Solution.