
            {
                if (line.Contains(&quot;&lt;!--PAGE--&gt;&quot;))
                {
                    header = sb.ToString(); // capture up to start page marker
                    sb.Clear();
                }
                else sb.AppendLine(line);
            }
            else
            {
                if (sb.Length == 0)
                {
                    if (line.Contains(&quot;&lt;!--/PAGE--&gt;&quot;)) // discard up to end page marker
                    {
   