public void EndNumbering()
 {
     while (this._route.Count > 0)
     {
         PDFPageNumberGroup grp = this._route.Pop();
         if (grp.IsCounting)
         {
             grp.EndCounting();
         }
     }
 }
 public void PopNumberStyle(PDFPageNumberGroup grp)
 {
     if (null != grp)
     {
         if (this._route.Pop().Equals(grp) == false)
         {
             throw new InvalidOperationException("Unbalanced stack");
         }
         grp.EndCounting();
     }
 }