Below is the C# code which is taking longer time to execute
public void CreatePDFFile()
{
try
{
var logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
…... Limiting the search scope (e.g., only the footer...options); } You’ll avoid the second full‑document scan, which typically...